X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fgtkcfg.c;h=4307176f13698b8fea65cd9819176830004bfe3d;hb=8d48caa849907d6737fbdaee5fc49907beb899c2;hp=ab8ef973912f30044be938aa74e70cdacb97819c;hpb=a1f3b7a358adaa7c2a98359cd0373aa823eeb14b;p=PuTTY.git diff --git a/unix/gtkcfg.c b/unix/gtkcfg.c index ab8ef973..4307176f 100644 --- a/unix/gtkcfg.c +++ b/unix/gtkcfg.c @@ -81,6 +81,7 @@ void gtk_setup_config_box(struct controlbox *b, int midsession, void *win) memmove(b->ctrlsets+i, b->ctrlsets+i+1, (b->nctrlsets-i-1) * sizeof(*b->ctrlsets)); b->nctrlsets--; + ctrl_free_set(s2); break; } } @@ -128,6 +129,22 @@ void gtk_setup_config_box(struct controlbox *b, int midsession, void *win) conf_checkbox_handler, I(CONF_utf8_override)); +#ifdef OSX_META_KEY_CONFIG + /* + * On OS X, there are multiple reasonable opinions about whether + * Option or Command (or both, or neither) should act as a Meta + * key, or whether they should have their normal OS functions. + */ + s = ctrl_getset(b, "Terminal/Keyboard", "meta", + "Choose the Meta key:"); + ctrl_checkbox(s, "Option key acts as Meta", 'p', + HELPCTX(no_help), + conf_checkbox_handler, I(CONF_osx_option_meta)); + ctrl_checkbox(s, "Command key acts as Meta", 'm', + HELPCTX(no_help), + conf_checkbox_handler, I(CONF_osx_command_meta)); +#endif + if (!midsession) { /* * Allow the user to specify the window class as part of the saved