aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cmdline.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/cmdline.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/cmdline.cpp')
-rw-r--r--src/cmdline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp
index 888a70c..4a04277 100644
--- a/src/cmdline.cpp
+++ b/src/cmdline.cpp
@@ -268,7 +268,7 @@ Cmdline::process_edit_cmd(gchar key)
modifier_enabled ? "enabled" : "disabled");
break;
- case '\b': /* rubout/reinsert character */
+ case CTL_KEY('H'): /* rubout/reinsert character */
interface.popup_clear();
if (modifier_enabled)