summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJohn Arbuckle2017-10-05 21:04:49 +0200
committerPeter Maydell2017-11-02 12:50:20 +0100
commitfa73e146250181852c0915aa65df8d54d35485fa (patch)
tree476125e9cc1f79980f5d395e8271a954c6dbc22f /ui
parentMerge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging (diff)
downloadqemu-fa73e146250181852c0915aa65df8d54d35485fa.tar.gz
qemu-fa73e146250181852c0915aa65df8d54d35485fa.tar.xz
qemu-fa73e146250181852c0915aa65df8d54d35485fa.zip
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')
-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;
}