X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxoptions.c;h=c49d1399d9db7dc451a74c0cf53cc3228472ac86;hb=8e4e7498f755756037667e365793f88a2bdd6166;hp=d1420ed5edeb21c9e07df0390d684e1c3e3f2472;hpb=5f7c90b5f01c8018d2c39d400386b3b572f03791;p=xboard.git diff --git a/gtk/xoptions.c b/gtk/xoptions.c index d1420ed..c49d139 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1,7 +1,7 @@ /* * xoptions.c -- Move list window, part of X front end for XBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -52,7 +52,7 @@ extern char *getenv(); #include #include #ifdef OSXAPP -# include +# include #endif #include "common.h" @@ -444,9 +444,19 @@ CreateMenuPopup (Option *opt, int n, int def) gtk_accelerator_parse(mb[i].accel, &accelerator_key, &accelerator_mods); #ifdef OSXAPP - if(accelerator_mods & GDK_CONTROL_MASK) { // in OSX use Meta where Linux uses Ctrl - accelerator_mods &= ~GDK_CONTROL_MASK; // clear Ctrl flag - accelerator_mods |= GDK_META_MASK; // set Meta flag + if(accelerator_mods & GDK_CONTROL_MASK && + accelerator_key != 'v' && // don't use Cmd+V + accelerator_key != 'c' && // and Cmd+C + accelerator_key != 'x' && // and CMD+X + accelerator_key != 'a' && // and CMD+A + accelerator_key != 'w' && // and evreything else in mode menu for umiformity's sake + accelerator_key != 'b' && + accelerator_key != 't' && + accelerator_key != 'g' && + accelerator_key != 'e' + ) { // in OSX use Meta (Cmd) where Linux uses Ctrl + accelerator_mods &= ~GDK_CONTROL_MASK; // clear Ctrl flag + accelerator_mods |= GDK_META_MASK; // set Meta flag } #endif gtk_widget_add_accelerator (GTK_WIDGET(entry), "activate",GtkAccelerators,