diff options
Diffstat (limited to 'tikzit/src/gtk/Application.m')
-rw-r--r-- | tikzit/src/gtk/Application.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tikzit/src/gtk/Application.m b/tikzit/src/gtk/Application.m index 4c696a2..bfde140 100644 --- a/tikzit/src/gtk/Application.m +++ b/tikzit/src/gtk/Application.m @@ -209,7 +209,7 @@ Application* app = nil; } } -- (void) activateToolForKey:(unsigned int)keyVal withMask:(InputMask)mask { +- (BOOL) activateToolForKey:(unsigned int)keyVal withMask:(InputMask)mask { // FIXME: cache the accel info, rather than reparsing it every time? for (id<Tool> tool in tools) { guint toolKey = 0; @@ -217,9 +217,10 @@ Application* app = nil; gtk_accelerator_parse ([[tool shortcut] UTF8String], &toolKey, &toolMod); if (toolKey != 0 && toolKey == keyVal && (int)mask == (int)toolMod) { [self setActiveTool:tool]; - return; + return YES; } } + return NO; } - (void) _addWindow:(Window*)window { |