qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] ui/cocoa.m: Fix console selection keys
@ 2017-10-05 19:04 John Arbuckle
  2017-11-02 12:42 ` Peter Maydell
  0 siblings, 1 reply; 2+ messages in thread
From: John Arbuckle @ 2017-10-05 19:04 UTC (permalink / raw)
  To: peter.maydell, qemu-devel; +Cc: John Arbuckle

Fix console selection keys so that the right console is selected. 

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
---
 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;
                 }
 
-- 
2.13.5 (Apple Git-94)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-02 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 19:04 [Qemu-devel] [PATCH] ui/cocoa.m: Fix console selection keys John Arbuckle
2017-11-02 12:42 ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).