From: Joshua Pettus Date: Sat, 30 Jan 2016 04:15:28 +0000 (-0500) Subject: Bit more accelerator stuff X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=08efec69c9d96e1ebeb0bb751aad3151e672573f Bit more accelerator stuff Bit of code didn't do what I wanted it to and took away to many 'alt' flags --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 07295fd..0f4ca2b 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -462,12 +462,6 @@ CreateMenuPopup (Option *opt, int n, int def) accelerator_mods |= GDK_META_MASK; accelerator_mods |= GDK_MOD1_MASK; } - if (accelerator_mods & GDK_SHIFT_MASK && - GDK_META_MASK && - GDK_MOD1_MASK - ) { // If there is a shift, we can get rid of alt as it is awfully cumbersome to press - accelerator_mods &= ~GDK_MOD1_MASK; // clear ALT flag - } #endif gtk_widget_add_accelerator (GTK_WIDGET(entry), "activate",GtkAccelerators, accelerator_key, accelerator_mods, GTK_ACCEL_VISIBLE);