[vte] emulation: Fix escape sequence of Ctrl+Backspace



commit 23c7cd0f99d504cbab06d4c27254d4f3e2807ba8
Author: Egmont Koblinger <egmont gmail com>
Date:   Sun Aug 16 12:22:20 2015 +0200

    emulation: Fix escape sequence of Ctrl+Backspace
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733246

 src/vte.cc |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index b529687..32cccc0 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -5012,6 +5012,13 @@ vte_terminal_key_press(GtkWidget *widget, GdkEventKey *event)
                                suppress_meta_esc = FALSE;
                                break;
                        }
+                        /* Toggle ^H vs ^? if Ctrl is pressed */
+                        if (normal_length == 1 && modifiers & GDK_CONTROL_MASK) {
+                                if (normal[0] == '\010')
+                                        normal[0] = '\177';
+                                else if (normal[0] == '\177')
+                                        normal[0] = '\010';
+                        }
                        handled = TRUE;
                        break;
                case GDK_KEY_KP_Delete:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]