Merge pull request #143 from holomorph/more_bracketleft

enable escaping overlays with C-[
This commit is contained in:
Simon Gomizelj 2013-12-04 12:48:54 -08:00
commit d805f914c4
1 changed files with 8 additions and 0 deletions

View File

@ -791,8 +791,16 @@ static void synthesize_keypress(GtkWidget *widget, unsigned keyval) {
} }
gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *info) { gboolean entry_key_press_cb(GtkEntry *entry, GdkEventKey *event, keybind_info *info) {
const guint modifiers = event->state & gtk_accelerator_get_default_mod_mask();
gboolean ret = FALSE; gboolean ret = FALSE;
if (modifiers == GDK_CONTROL_MASK) {
switch (event->keyval) {
case GDK_KEY_bracketleft:
ret = TRUE;
break;
}
}
switch (event->keyval) { switch (event->keyval) {
case GDK_KEY_BackSpace: case GDK_KEY_BackSpace:
case GDK_KEY_0: case GDK_KEY_0: