Backspace, Shift-Backspace should do the _other_ one. Thanks to
Justin Bradford.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2079
cda61777-01e9-0310-a592-
d414129be87e
output[1] = cfg.bksp_is_delete ? '\x7F' : '\x08';
end = 2;
}
+ /* For Shift Backspace, do opposite of what is configured. */
+ if (event->keyval == GDK_BackSpace &&
+ (event->state & GDK_SHIFT_MASK)) {
+ output[1] = cfg.bksp_is_delete ? '\x08' : '\x7F';
+ end = 2;
+ }
/* Shift-Tab is ESC [ Z */
if (event->keyval == GDK_ISO_Left_Tab ||
*p++ = 0;
return -2;
}
+ if (wParam == VK_BACK && shift_state == 1) { /* Shift Backspace */
+ /* We do the opposite of what is configured */
+ *p++ = (cfg.bksp_is_delete ? 0x08 : 0x7F);
+ *p++ = 0;
+ return -2;
+ }
if (wParam == VK_TAB && shift_state == 1) { /* Shift tab */
*p++ = 0x1B;
*p++ = '[';