* [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
* Re: [Qemu-devel] [PATCH] ui/cocoa.m: Fix console selection keys
2017-10-05 19:04 [Qemu-devel] [PATCH] ui/cocoa.m: Fix console selection keys John Arbuckle
@ 2017-11-02 12:42 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2017-11-02 12:42 UTC (permalink / raw)
To: John Arbuckle; +Cc: QEMU Developers
On 5 October 2017 at 20:04, John Arbuckle <programmingkidx@gmail.com> wrote:
> 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;
> }
Applied to master, thanks.
-- PMM
^ permalink raw reply [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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.