From fa73e146250181852c0915aa65df8d54d35485fa Mon Sep 17 00:00:00 2001 From: John Arbuckle Date: Thu, 5 Oct 2017 15:04:49 -0400 Subject: [PATCH] ui/cocoa.m: Fix console selection keys Fix console selection keys so that the right console is selected. Signed-off-by: John Arbuckle Message-id: 20171005190449.15591-1-programmingkidx@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ - (void) handleEvent:(NSEvent *)event // 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; }