Menu

#44 Different roles for left and right Meta keys

open
nobody
None
5
2010-06-01
2010-06-01
No

Hello there,

This tiny patch addresses feature request from here:
https://sourceforge.net/tracker/index.php?func=detail&aid=1169095&group_id=67789&atid=518976#

It's already useful for me in this state - but ideally, it should be a preference to toggle in keyboard profile. I'm no developer, and I'm rather unfamiliar with ObjC. Hopefully, plugging this thing in the gui should be trivial for someone experienced.

Hope this will be useful,

KT.

Discussion

  • Anonymous

    Anonymous - 2010-06-01

    Don't activate on RIGHT Option key.

     
  • Anonymous

    Anonymous - 2010-06-07

    I made more elaborate patch, that allows for per-keyboard profile toggling of that option. If you ask for Meta or +ESC translation, you can pick whether you want all, left or right Option key to remain "normal".

    This patch is relative to 0.10.x branch, r1871.

    That was my first Objective C thing ever, so there might be something awfully wrong with the patch. It can probably be a bit more robust (like, instead of checking preferences every time, check it only at session creation time), but I've used iTerm 0.10 patched with this patch, and it works as expected, without any slowness. Ran some profiling, the time spent in new code was negligible.

    For anyone interested (and trusting me :) the precompiled 0.10 with this patch applied can be downloaded from here:
    http://bit.ly/iTermMeta

    Oh, and I was compiling the project using XCode 3.2.2 - so the diff to .xib file is probably very noisy.

     
  • Anonymous

    Anonymous - 2010-06-07

    Allow user to select which Option keys change their function on Meta/+ESC translation.

     

Log in to post a comment.