Hi why,
this night during the shoesfest I've found myself continually trying
to close windows with Command+W (usual Mac way) so I modified cocoa.m
accordingly. Command+? opens the Help menu, but I thought it'd be cool
to have the manual to show up with only one keystroke (and then
closing it with Cmd+W)
hope it's going to be useful
Emanuel
---
shoes/native/cocoa.m | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/shoes/native/cocoa.m b/shoes/native/cocoa.m
index 0b7b08e..ced7122 100644
--- a/shoes/native/cocoa.m
+++ b/shoes/native/cocoa.m
@@ -444,6 +444,8 @@ create_window_menu(NSMenu *main)
[menuWindows addItemWithTitle:@"Minimize"
action:@selector(performMiniaturize:) keyEquivalent:@""];
+ [menuWindows addItemWithTitle:@"Close current Window"
+ action:@selector(performClose:) keyEquivalent:@"w"];
[menuWindows addItem: [NSMenuItem separatorItem]];
[menuWindows addItemWithTitle:@"Bring All to Front"
action:@selector(arrangeInFront:) keyEquivalent:@""];
@@ -463,7 +465,7 @@ create_help_menu(NSMenu *main)
[menuitem setTarget: shoes_world->os.events];
[menuHelp addItem: [NSMenuItem separatorItem]];
menuitem = [menuHelp addItemWithTitle:@"Manual"
- action:@selector(help:) keyEquivalent:@"?"];
+ action:@selector(help:) keyEquivalent:@"m"];
[menuitem setTarget: shoes_world->os.events];
add_to_menubar(main, menuHelp);
[menuHelp release];
--
1.5.4.3