[CHANGED] When erasing a key equivalent (by clicking the X), the input control will resign as first responder (i.e. lose focus).
Thank you, thank you, thank you!
[NEW] It’s now possible to change the key equivalent used for the bundle items pop-up menu in the status bar. This is done by setting the OakBundleItemsPopUpMenuKeyEquivalent defaults property to the key string. The default is "^\033" (control-Escape). This key does have very low precedence.
How does one find the key string value for a key? For instance F3. I found some unicode codes here: http://hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html and also this little app that tells you various codes here: http://www.petermaurer.de/nasi.php?section=keycodes This program, for ctrl-escape, gave me:
Unicode: 27 / 0x1b Keys: ^Escape Key Code: 53 / 0x35 Modifiers: 262401 / 0x40101
And for F3 gave me:
Unicode: 63238 / 0xf706 Keys: F3 Key Code: 99 / 0x63 Modifiers: 8388864 / 0x800100
Are any of these numbers the right thing? I'm worried because I am not seeing \033 in either of these entries.
Haris
On 27/4/2006, at 17:49, Charilaos Skiadas wrote:
[NEW] It’s now possible to change the key equivalent used for the bundle items pop-up menu in the status bar. This is done by setting the OakBundleItemsPopUpMenuKeyEquivalent defaults property to the key string. The default is "^\033" (control-Escape). This key does have very low precedence.
How does one find the key string value for a key?
The key string is like with key bindings files, I describe most of it here [1].
This program, for ctrl-escape, gave me: Unicode: 27 / 0x1b
When using \nnn in the string, it refers to the octal value.
If we convert 27 (decimal) to octal we get:
% bc <<<'obase=8; 27' 33
And to hexadecimal, it’s 0x1b:
% bc <<<'obase=16; 27' 1B
So that is how the numbers relate, and ^ marks the control modifier (see the blog posting for the full list).
The value 033/27/0x1B is the code for the escape control character. See ‘man ascii’ to confirm. This one actually list the ASCII characters as both octal, deciman, and hexadecimal. I use \033 because I can’t type that character easily, e.g. had I wanted control- A, I would make it ^a rather than ^\141, but both would work.
And for F3 gave me: Unicode: 63238 / 0xf706 [...] Are any of these numbers the right thing? I'm worried because I am not seeing \033 in either of these entries.
Yes, use the hexadecimal number, and prepend it with \U instead of 0x. So the key string for F3 is: '\UF706'.
[1] http://macromates.com/blog/archives/2005/07/05/key-bindings-for- switchers/