aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-07 03:16:49 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-07 03:16:49 +0100
commitd107f8d1de766ca339f61a189bd01810af89986f (patch)
tree3297152f484603e40aed82e80fbee75db82f4991 /src/interface-gtk.cpp
parent2789e5da50987b908a4aa5758a17c86570d94d63 (diff)
downloadsciteco-d107f8d1de766ca339f61a189bd01810af89986f.tar.gz
Curses UI: fixed translation of the backspace key
* for historic reasons, the backspace key can be transmitted as ^H by the terminal. Some terminal emulators might do that - these are fixed by this commit. * Use CTL_KEY('H') instead of standard C '\b' as the former is less ambiguous given the confusion around the backspace character.
Diffstat (limited to 'src/interface-gtk.cpp')
-rw-r--r--src/interface-gtk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface-gtk.cpp b/src/interface-gtk.cpp
index 8375dd8..14dfafd 100644
--- a/src/interface-gtk.cpp
+++ b/src/interface-gtk.cpp
@@ -311,7 +311,7 @@ handle_key_press(bool is_shift, bool is_ctl, guint keyval)
cmdline.keypress(CTL_KEY_ESC);
break;
case GDK_BackSpace:
- cmdline.keypress('\b');
+ cmdline.keypress(CTL_KEY('H'));
break;
case GDK_Tab:
cmdline.keypress('\t');