aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface-gtk.cpp')
-rw-r--r--src/interface-gtk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface-gtk.cpp b/src/interface-gtk.cpp
index e7f6927..8375dd8 100644
--- a/src/interface-gtk.cpp
+++ b/src/interface-gtk.cpp
@@ -196,7 +196,7 @@ InterfaceGtk::cmdline_insert_chr(gint &pos, gchar chr)
* View::set_representations()
*/
switch (chr) {
- case '\x1B': /* escape */
+ case CTL_KEY_ESC:
strcpy(buffer, "$");
break;
case '\r':
@@ -308,7 +308,7 @@ handle_key_press(bool is_shift, bool is_ctl, guint keyval)
{
switch (keyval) {
case GDK_Escape:
- cmdline.keypress('\x1B');
+ cmdline.keypress(CTL_KEY_ESC);
break;
case GDK_BackSpace:
cmdline.keypress('\b');