X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fgtkcfg.c;h=4307176f13698b8fea65cd9819176830004bfe3d;hb=095072fa46b2d7b8beafaddb2f873d2f500a1e10;hp=958a3f6653e6a4571ab03c4ced9ffabd6566b960;hpb=4c24c8dc5a252a3d1df604ecb0cdfd82267aa94d;p=PuTTY.git diff --git a/unix/gtkcfg.c b/unix/gtkcfg.c index 958a3f66..4307176f 100644 --- a/unix/gtkcfg.c +++ b/unix/gtkcfg.c @@ -129,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