From d107f8d1de766ca339f61a189bd01810af89986f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 7 Mar 2015 03:16:49 +0100 Subject: 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. --- src/cmdline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmdline.cpp') 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) -- cgit v1.2.3