From 4ee50a8cf2b592c2ac98a45da63bde6466a9ee9f Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Wed, 12 Dec 2012 12:57:25 +0000 Subject: Implement (single-key) tool shortcuts --- tikzit/src/gtk/GraphEditorPanel.m | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tikzit/src/gtk/GraphEditorPanel.m') diff --git a/tikzit/src/gtk/GraphEditorPanel.m b/tikzit/src/gtk/GraphEditorPanel.m index 542dba1..d2a1831 100644 --- a/tikzit/src/gtk/GraphEditorPanel.m +++ b/tikzit/src/gtk/GraphEditorPanel.m @@ -17,6 +17,7 @@ #import "GraphEditorPanel.h" +#import "Application.h" #import "GraphRenderer.h" #import "HandTool.h" #import "InputDelegate.h" @@ -168,6 +169,13 @@ [tool mouseScrolledAt:pos inDirection:dir withMask:mask]; } } + +- (void) keyPressed:(unsigned int)keyVal withMask:(InputMask)mask { + [app activateToolForKey:keyVal withMask:mask]; +} + +- (void) keyReleased:(unsigned int)keyVal withMask:(InputMask)mask { +} @end // vim:ft=objc:ts=8:et:sts=4:sw=4 -- cgit v1.2.3