forked from osmocom/wireshark
ui/gtk: use GTK+ 2 name for control keys
The GDK_KEY_* names are part of GTK+ 3, GTK+ 2 does not have the _KEY_ infix. See https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3.6 Fixes regression from "ui/gtk: fix control combos such as ctrl-a, ctrl-c". Change-Id: I4d470212d172f978c171e54ff7377ddc211817ac Reviewed-on: https://code.wireshark.org/review/7325 Reviewed-by: Balint Reczey <balint@balintreczey.hu>
This commit is contained in:
parent
d488d6392a
commit
966766694c
|
@ -375,8 +375,8 @@ filter_string_te_key_pressed_cb(GtkWidget *filter_te, GdkEventKey *event, gpoint
|
|||
switch (k) {
|
||||
case GDK_Shift_L:
|
||||
case GDK_Shift_R:
|
||||
case GDK_KEY_Control_L:
|
||||
case GDK_KEY_Control_R:
|
||||
case GDK_Control_L:
|
||||
case GDK_Control_R:
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue