aboutsummaryrefslogtreecommitdiff
path: root/ui/cocoa.m
diff options
context:
space:
mode:
authorJohn Arbuckle <programmingkidx@gmail.com>2017-10-05 15:04:49 -0400
committerPeter Maydell <peter.maydell@linaro.org>2017-11-02 11:50:20 +0000
commitfa73e146250181852c0915aa65df8d54d35485fa (patch)
tree476125e9cc1f79980f5d395e8271a954c6dbc22f /ui/cocoa.m
parent8a8c493942048b466efa38d72405f33366c55f3f (diff)
ui/cocoa.m: Fix console selection keys
Fix console selection keys so that the right console is selected. Signed-off-by: John Arbuckle <programmingkidx@gmail.com> Message-id: 20171005190449.15591-1-programmingkidx@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui/cocoa.m')
-rw-r--r--ui/cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 93e56d0518..2794f60b27 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -631,7 +631,7 @@ QemuCocoaView *cocoaView;
// enable graphic console
case Q_KEY_CODE_1 ... Q_KEY_CODE_9: // '1' to '9' keys
- console_select(keycode - 11);
+ console_select(keycode - Q_KEY_CODE_1);
break;
}