diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-21 03:03:38 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-21 03:03:38 +0200 |
commit | 0c04cfed7f8c4bfe8839374171236e684a9df437 (patch) | |
tree | c85f26f84e0c75552e302eadffc35abaa9140f5f /src/fe-gtk/fkeys.c | |
parent | ef18ded8279cc484194cac897cea5ab634ead07a (diff) |
Make modifier buttons truly abstract
Diffstat (limited to 'src/fe-gtk/fkeys.c')
-rw-r--r-- | src/fe-gtk/fkeys.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c index dcab0946..bca87dd3 100644 --- a/src/fe-gtk/fkeys.c +++ b/src/fe-gtk/fkeys.c @@ -87,10 +87,6 @@ void key_action_tab_clean (void); /* Remember that the *number* of actions is this *plus* 1 --AGL */ #define KEY_MAX_ACTIONS 14 -/* These are cp'ed from history.c --AGL */ -#define STATE_SHIFT GDK_SHIFT_MASK -#define STATE_ALT GDK_MOD1_MASK -#define STATE_CTRL GDK_CONTROL_MASK struct key_binding { @@ -325,7 +321,7 @@ key_handle_key_press (GtkWidget *wid, GdkEventKey *evt, session *sess) /* gtktextview has no 'activate' event, so we trap ENTER here */ case GDK_Return: case GDK_KP_Enter: - if (!(evt->state & GDK_CONTROL_MASK)) + if (!(evt->state & STATE_CTRL)) { g_signal_stop_emission_by_name (G_OBJECT (wid), "key_press_event"); mg_inputbox_cb (wid, sess->gui); @@ -1738,11 +1734,6 @@ key_action_put_history (GtkWidget * wid, GdkEventKey * ent, char *d1, /* -------- */ - -#define STATE_SHIFT GDK_SHIFT_MASK -#define STATE_ALT GDK_MOD1_MASK -#define STATE_CTRL GDK_CONTROL_MASK - static void replace_handle (GtkWidget *t) { |