New: Bezel accepts cmd+, to open the application preferences.

This commit is contained in:
Richard Mondello 2011-11-20 01:48:21 -05:00
parent 5e0fc08cbf
commit 419c05d468

View file

@ -322,6 +322,7 @@
return; return;
} }
unichar pressed = [[theEvent charactersIgnoringModifiers] characterAtIndex:0]; unichar pressed = [[theEvent charactersIgnoringModifiers] characterAtIndex:0];
NSUInteger modifiers = [theEvent modifierFlags];
switch ( pressed ) { switch ( pressed ) {
case 0x1B: case 0x1B:
[self hideApp]; [self hideApp];
@ -329,6 +330,11 @@
case 0x3: case 0xD: // Enter or Return case 0x3: case 0xD: // Enter or Return
[self pasteFromStack]; [self pasteFromStack];
break; break;
case 44: // Comma
if ( modifiers & NSCommandKeyMask ) {
[self showPreferencePanel:nil];
}
break;
case NSUpArrowFunctionKey: case NSUpArrowFunctionKey:
case NSLeftArrowFunctionKey: case NSLeftArrowFunctionKey:
[self stackUp]; [self stackUp];