From: Akihiko Odaki <akihiko.odaki@gmail.com>
To: "Markus Armbruster" <armbru@redhat.com>,
"BALATON Zoltan" <balaton@eik.bme.hu>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Gerd Hoffmann <kraxel@redhat.com>, Eric Blake <eblake@redhat.com>,
qemu-devel@nongnu.org,
Gustavo Noronha Silva <gustavo@noronha.dev.br>
Subject: Re: [PATCH 2/2] ui/cocoa: add option to swap Option and Command
Date: Mon, 7 Mar 2022 16:50:01 +0900 [thread overview]
Message-ID: <4c171d81-576f-e2ff-787f-9b9744f79013@gmail.com> (raw)
In-Reply-To: <87lexmw7t8.fsf@pond.sub.org>
On 2022/03/07 16:17, Markus Armbruster wrote:
> BALATON Zoltan <balaton@eik.bme.hu> writes:
>
>> On Sun, 6 Mar 2022, Akihiko Odaki wrote:
>>> From: Gustavo Noronha Silva <gustavo@noronha.dev.br>
>>>
>>> On Mac OS X the Option key maps to Alt and Command to Super/Meta. This change
>>> swaps them around so that Alt is the key closer to the space bar and Meta/Super
>>> is between Control and Alt, like on non-Mac keyboards.
>>>
>>> It is a cocoa display option, disabled by default.
>>>
>>> Acked-by: Markus Armbruster <armbru@redhat.com>
>>> Signed-off-by: Gustavo Noronha Silva <gustavo@noronha.dev.br>
>>> Message-Id: <20210713213200.2547-3-gustavo@noronha.dev.br>
>>> Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
>>> ---
>>> qapi/ui.json | 8 ++++++-
>>> qemu-options.hx | 3 ++-
>>> ui/cocoa.m | 64 ++++++++++++++++++++++++++++++++++++++++++-------
>>> 3 files changed, 65 insertions(+), 10 deletions(-)
>>>
>>> diff --git a/qapi/ui.json b/qapi/ui.json
>>> index 1e9893419fe..b082e1a7dee 100644
>>> --- a/qapi/ui.json
>>> +++ b/qapi/ui.json
>>> @@ -1270,10 +1270,16 @@
>>> # a global grab on key events. (default: off)
>>> # See https://support.apple.com/en-in/guide/mac-help/mh32356/mac
>>> #
>>> +# @swap-option-command: Swap the Option and Command keys so that their key
>>> +# codes match their position on non-Mac keyboards and
>>> +# you can use Meta/Super and Alt where you expect them.
>>> +# (default: off)
>>> +#
>>> # Since: 6.1
>>> ##
>>> { 'struct' : 'DisplayCocoa',
>>> - 'data' : { '*full-grab' : 'bool' } }
>>> + 'data' : { '*full-grab' : 'bool',
>>> + '*swap-option-command' : 'bool' } }
>>
>> This option name is too long to type. Could we abbreviate it somehow?
>
> We've largely avoided abbreviations in the QAPI schema, for better or
> worse.
>
>> Like swap-opt-cmd or swap-alt-meta?
>
> We should stick to how the keys are generally called on this platform.
> I can't say (I'm not using it).
>
The patch series is now in:
https://patchew.org/QEMU/20220306231753.50277-1-philippe.mathieu.daude@gmail.com/
It uses swap-opt-cmd for the name. Please reply to the series if it is
problematic.
Regards,
Akihiko Odaki
next prev parent reply other threads:[~2022-03-07 7:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-06 11:11 [PATCH 0/2] cocoa: keyboard quality of life Akihiko Odaki
2022-03-06 11:11 ` [PATCH 1/2] ui/cocoa: capture all keys and combos when mouse is grabbed Akihiko Odaki
2022-03-06 11:28 ` BALATON Zoltan
2022-03-06 11:11 ` [PATCH 2/2] ui/cocoa: add option to swap Option and Command Akihiko Odaki
2022-03-06 11:46 ` BALATON Zoltan
2022-03-07 7:17 ` Markus Armbruster
2022-03-07 7:50 ` Akihiko Odaki [this message]
2022-03-07 12:25 ` BALATON Zoltan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4c171d81-576f-e2ff-787f-9b9744f79013@gmail.com \
--to=akihiko.odaki@gmail.com \
--cc=armbru@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=eblake@redhat.com \
--cc=f4bug@amsat.org \
--cc=gustavo@noronha.dev.br \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).