[PATCH] Assume Shift+Backspace is Backspace



Hello,

I'm sending a patch, wich corrects keypress of 'Shift+Backspace'
to 'Backspace'.

It seems to me more comfortable not to release the Shift key
when typing variable name and making a typo.
By now Shift+BS does nothing and only slows down typing.

I think Shift+BS has not any specific meaning which could be
possibly broken by such change.


David
diff -urN key.c.orig key.c
--- key.c.orig	Sat Mar 15 01:31:15 2003
+++ key.c	Mon May 12 21:08:38 2003
@@ -595,6 +595,12 @@
 	mod &= ~KEY_M_CTRL;
     }
 
+    /* Shift+BackSpace is backspace */
+    if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT)) {
+        c = KEY_BACKSPACE;
+        mod &= ~KEY_M_SHIFT;
+    }
+
     /* Convert Shift+Fn to F(n+10) */
     if (c >= KEY_F (1) && c <= KEY_F (10) && (mod & KEY_M_SHIFT)) {
 	c += 10;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]