summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/GraphEditorPanel.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-12 12:57:25 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-12 12:57:25 +0000
commit4ee50a8cf2b592c2ac98a45da63bde6466a9ee9f (patch)
tree1462a0245783ef25427803d8d67a2af8f2e0cabe /tikzit/src/gtk/GraphEditorPanel.m
parentad869704e6dd52315bff174070e570727e7e8d98 (diff)
Implement (single-key) tool shortcuts
Diffstat (limited to 'tikzit/src/gtk/GraphEditorPanel.m')
-rw-r--r--tikzit/src/gtk/GraphEditorPanel.m8
1 files changed, 8 insertions, 0 deletions
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