[PATCH] Fix backspace handling on Haiku
François Revol <[email protected]> Thu, 09 Jan 2014 11:59:13 +0100
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
It seems I used the wrong identifier for backspace in the Haiku code, KEY_BS does C-g... This uses KEY_DEL as does the X11 code. François. _______________________________________________ Qemacs-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/qemacs-devel
qemacs-haiku-fix-backspace.patch
(text/x-patch, 689 B)
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.4
diff -u -r1.4 haiku.cpp
--- haiku.cpp 19 Dec 2013 00:41:22 -0000 1.4
+++ haiku.cpp 9 Jan 2014 10:56:17 -0000
@@ -531,9 +531,9 @@
byte = (char)raw_char;
switch (byte) {
case B_BACKSPACE:
- key = KEY_BS;
+ key = KEY_DEL;
if (meta)
- key = KEY_META(KEY_BS);
+ key = KEY_META(KEY_DEL);
break;
case B_TAB:
key = KEY_TAB;