summaryrefslogtreecommitdiff
path: root/src/video/cocoa_v.mm
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-07-23 16:39:27 +0000
committertruelight <truelight@openttd.org>2007-07-23 16:39:27 +0000
commite15c5fc6b04a70bb0b388a4bd86cab7f7faa39aa (patch)
tree007552a6d702fafa5e7c7b5de2f213240dba7bb5 /src/video/cocoa_v.mm
parente0c31b63db2b0ffe5734fa9d2af69e4572330145 (diff)
downloadopenttd-e15c5fc6b04a70bb0b388a4bd86cab7f7faa39aa.tar.xz
(svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
-Add: added 'M' as new shortcut for smallmap (bilbo) -Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo) -Add: added support for other keycodes to be possible used in the future (bilbo)
Diffstat (limited to 'src/video/cocoa_v.mm')
-rw-r--r--src/video/cocoa_v.mm16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/video/cocoa_v.mm b/src/video/cocoa_v.mm
index 425b74d00..409d14215 100644
--- a/src/video/cocoa_v.mm
+++ b/src/video/cocoa_v.mm
@@ -330,7 +330,21 @@ static const VkMapping _vk_mapping[] = {
AS(QZ_KP_MINUS, WKC_NUM_MINUS),
AS(QZ_KP_PLUS, WKC_NUM_PLUS),
AS(QZ_KP_ENTER, WKC_NUM_ENTER),
- AS(QZ_KP_PERIOD, WKC_NUM_DECIMAL)
+ AS(QZ_KP_PERIOD, WKC_NUM_DECIMAL),
+
+ // Other non-letter keys
+ AS(QZ_SLASH, WKC_SLASH),
+ AS(QZ_SEMICOLON, WKC_SEMICOLON),
+ AS(QZ_EQUALS, WKC_EQUALS),
+ AS(QZ_LEFTBRACKET, WKC_L_BRACKET),
+ AS(QZ_BACKSLASH, WKC_BACKSLASH),
+ AS(QZ_RIGHTBRACKET, WKC_R_BRACKET),
+
+ AS(QZ_QUOTE, WKC_SINGLEQUOTE),
+ AS(QZ_COMMA, WKC_COMMA),
+ AS(QZ_MINUS, WKC_MINUS),
+ AS(QZ_PERIOD, WKC_PERIOD)
+
};