qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ui/cocoa: user friendly characters for release mouse
@ 2022-12-27 16:15 Christian Schoenebeck
  2022-12-29  9:24 ` Christian Schoenebeck
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Christian Schoenebeck @ 2022-12-27 16:15 UTC (permalink / raw)
  To: qemu-devel
  Cc: Akihiko Odaki, Peter Maydell, Philippe Mathieu-Daudé,
	Gerd Hoffmann

While mouse is grabbed, window title contains a hint for the user what
keyboard keys to press to release the mouse. Make that hint text a bit
more user friendly for a Mac user:

 - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
   keys typically displayed for them on a Mac (encode those symbols by
   using UTF-8 characters).

 - Drop " + " in between the keys, as that's not common on macOS for
   documenting keyboard shortcuts.

 - Convert lower case "g" to upper case "G", as that's common on macOS.

 - Add one additional space at start and end of key stroke set, to
   visually separate the key strokes from the rest of the text.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
---
 ui/cocoa.m | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ui/cocoa.m b/ui/cocoa.m
index e915c344a8..289a2b193e 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -72,6 +72,9 @@
 
 #define cgrect(nsrect) (*(CGRect *)&(nsrect))
 
+#define UC_CTRL_KEY "\xe2\x8c\x83"
+#define UC_ALT_KEY "\xe2\x8c\xa5"
+
 typedef struct {
     int width;
     int height;
@@ -1135,9 +1138,9 @@ - (void) grabMouse
 
     if (!isFullscreen) {
         if (qemu_name)
-            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
+            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
         else
-            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
+            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
     }
     [self hideCursor];
     CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
-- 
2.32.0 (Apple Git-132)



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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2022-12-27 16:15 [PATCH] ui/cocoa: user friendly characters for release mouse Christian Schoenebeck
@ 2022-12-29  9:24 ` Christian Schoenebeck
  2022-12-29 12:31 ` Philippe Mathieu-Daudé
  2023-02-27 11:28 ` Christian Schoenebeck
  2 siblings, 0 replies; 9+ messages in thread
From: Christian Schoenebeck @ 2022-12-29  9:24 UTC (permalink / raw)
  To: qemu-devel
  Cc: Akihiko Odaki, Peter Maydell, Philippe Mathieu-Daudé,
	Gerd Hoffmann

[-- Attachment #1: Type: text/plain, Size: 2024 bytes --]

On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
> While mouse is grabbed, window title contains a hint for the user what
> keyboard keys to press to release the mouse. Make that hint text a bit
> more user friendly for a Mac user:
> 
>  - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
>    keys typically displayed for them on a Mac (encode those symbols by
>    using UTF-8 characters).
> 
>  - Drop " + " in between the keys, as that's not common on macOS for
>    documenting keyboard shortcuts.
> 
>  - Convert lower case "g" to upper case "G", as that's common on macOS.
> 
>  - Add one additional space at start and end of key stroke set, to
>    visually separate the key strokes from the rest of the text.
> 
> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> ---
>  ui/cocoa.m | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Screenshot attached how title bar looks like (on Mac hosts) after this change.

> diff --git a/ui/cocoa.m b/ui/cocoa.m
> index e915c344a8..289a2b193e 100644
> --- a/ui/cocoa.m
> +++ b/ui/cocoa.m
> @@ -72,6 +72,9 @@
>  
>  #define cgrect(nsrect) (*(CGRect *)&(nsrect))
>  
> +#define UC_CTRL_KEY "\xe2\x8c\x83"
> +#define UC_ALT_KEY "\xe2\x8c\xa5"
> +
>  typedef struct {
>      int width;
>      int height;
> @@ -1135,9 +1138,9 @@ - (void) grabMouse
>  
>      if (!isFullscreen) {
>          if (qemu_name)
> -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
> +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
>          else
> -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
> +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
>      }
>      [self hideCursor];
>      CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
> 

[-- Attachment #2: mac_release_mouse.jpg --]
[-- Type: image/jpeg, Size: 136650 bytes --]

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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2022-12-27 16:15 [PATCH] ui/cocoa: user friendly characters for release mouse Christian Schoenebeck
  2022-12-29  9:24 ` Christian Schoenebeck
@ 2022-12-29 12:31 ` Philippe Mathieu-Daudé
  2022-12-30 14:01   ` Christian Schoenebeck
  2023-02-27 11:28 ` Christian Schoenebeck
  2 siblings, 1 reply; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-29 12:31 UTC (permalink / raw)
  To: Christian Schoenebeck, qemu-devel
  Cc: Akihiko Odaki, Peter Maydell, Gerd Hoffmann

On 27/12/22 17:15, Christian Schoenebeck wrote:
> While mouse is grabbed, window title contains a hint for the user what
> keyboard keys to press to release the mouse. Make that hint text a bit
> more user friendly for a Mac user:
> 
>   - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
>     keys typically displayed for them on a Mac (encode those symbols by
>     using UTF-8 characters).
> 
>   - Drop " + " in between the keys, as that's not common on macOS for
>     documenting keyboard shortcuts.
> 
>   - Convert lower case "g" to upper case "G", as that's common on macOS.
> 
>   - Add one additional space at start and end of key stroke set, to
>     visually separate the key strokes from the rest of the text.
> 
> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> ---
>   ui/cocoa.m | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/ui/cocoa.m b/ui/cocoa.m
> index e915c344a8..289a2b193e 100644
> --- a/ui/cocoa.m
> +++ b/ui/cocoa.m
> @@ -72,6 +72,9 @@
>   
>   #define cgrect(nsrect) (*(CGRect *)&(nsrect))
>   
> +#define UC_CTRL_KEY "\xe2\x8c\x83"
> +#define UC_ALT_KEY "\xe2\x8c\xa5"
> +
>   typedef struct {
>       int width;
>       int height;
> @@ -1135,9 +1138,9 @@ - (void) grabMouse
>   
>       if (!isFullscreen) {
>           if (qemu_name)
> -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
> +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];

I was a bit confused by the control symbol at first and tough
I had to press '^'; thus I'm not sure keeping 'ctrl' wouldn't
be clearer. The UC_ALT_KEY symbol certainly is. Anyhow,

Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

>           else
> -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
> +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
>       }
>       [self hideCursor];
>       CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);



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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2022-12-29 12:31 ` Philippe Mathieu-Daudé
@ 2022-12-30 14:01   ` Christian Schoenebeck
  0 siblings, 0 replies; 9+ messages in thread
From: Christian Schoenebeck @ 2022-12-30 14:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Akihiko Odaki, Peter Maydell, Gerd Hoffmann,
	Philippe Mathieu-Daudé

On Thursday, December 29, 2022 1:31:09 PM CET Philippe Mathieu-Daudé wrote:
> On 27/12/22 17:15, Christian Schoenebeck wrote:
> > While mouse is grabbed, window title contains a hint for the user what
> > keyboard keys to press to release the mouse. Make that hint text a bit
> > more user friendly for a Mac user:
> > 
> >   - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
> >     keys typically displayed for them on a Mac (encode those symbols by
> >     using UTF-8 characters).
> > 
> >   - Drop " + " in between the keys, as that's not common on macOS for
> >     documenting keyboard shortcuts.
> > 
> >   - Convert lower case "g" to upper case "G", as that's common on macOS.
> > 
> >   - Add one additional space at start and end of key stroke set, to
> >     visually separate the key strokes from the rest of the text.
> > 
> > Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> > ---
> >   ui/cocoa.m | 7 +++++--
> >   1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > diff --git a/ui/cocoa.m b/ui/cocoa.m
> > index e915c344a8..289a2b193e 100644
> > --- a/ui/cocoa.m
> > +++ b/ui/cocoa.m
> > @@ -72,6 +72,9 @@
> >   
> >   #define cgrect(nsrect) (*(CGRect *)&(nsrect))
> >   
> > +#define UC_CTRL_KEY "\xe2\x8c\x83"
> > +#define UC_ALT_KEY "\xe2\x8c\xa5"
> > +
> >   typedef struct {
> >       int width;
> >       int height;
> > @@ -1135,9 +1138,9 @@ - (void) grabMouse
> >   
> >       if (!isFullscreen) {
> >           if (qemu_name)
> > -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
> > +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
> 
> I was a bit confused by the control symbol at first and tough
> I had to press '^'; thus I'm not sure keeping 'ctrl' wouldn't
> be clearer. The UC_ALT_KEY symbol certainly is. Anyhow,

It _should_ be clear to Mac users that "^" == "control" key on a Mac keyboard,
as that's how it is presented for keyboard shortcuts in all Mac menus. But if
it's really irritating then we can also revert that to either "Ctrl" or
"control". It's a quick change.

I just got itched by the "Alt" hint actually, which is not printed on any Mac
keyboard.

> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Thanks!

> >           else
> > -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
> > +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
> >       }
> >       [self hideCursor];
> >       CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
> 
> 
> 




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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2022-12-27 16:15 [PATCH] ui/cocoa: user friendly characters for release mouse Christian Schoenebeck
  2022-12-29  9:24 ` Christian Schoenebeck
  2022-12-29 12:31 ` Philippe Mathieu-Daudé
@ 2023-02-27 11:28 ` Christian Schoenebeck
  2023-03-13 12:26   ` Christian Schoenebeck
  2 siblings, 1 reply; 9+ messages in thread
From: Christian Schoenebeck @ 2023-02-27 11:28 UTC (permalink / raw)
  To: qemu-devel
  Cc: Akihiko Odaki, Peter Maydell, Philippe Mathieu-Daudé,
	Gerd Hoffmann

On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
> While mouse is grabbed, window title contains a hint for the user what
> keyboard keys to press to release the mouse. Make that hint text a bit
> more user friendly for a Mac user:
> 
>  - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
>    keys typically displayed for them on a Mac (encode those symbols by
>    using UTF-8 characters).
> 
>  - Drop " + " in between the keys, as that's not common on macOS for
>    documenting keyboard shortcuts.
> 
>  - Convert lower case "g" to upper case "G", as that's common on macOS.
> 
>  - Add one additional space at start and end of key stroke set, to
>    visually separate the key strokes from the rest of the text.
> 
> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> ---

Ping

>  ui/cocoa.m | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/ui/cocoa.m b/ui/cocoa.m
> index e915c344a8..289a2b193e 100644
> --- a/ui/cocoa.m
> +++ b/ui/cocoa.m
> @@ -72,6 +72,9 @@
>  
>  #define cgrect(nsrect) (*(CGRect *)&(nsrect))
>  
> +#define UC_CTRL_KEY "\xe2\x8c\x83"
> +#define UC_ALT_KEY "\xe2\x8c\xa5"
> +
>  typedef struct {
>      int width;
>      int height;
> @@ -1135,9 +1138,9 @@ - (void) grabMouse
>  
>      if (!isFullscreen) {
>          if (qemu_name)
> -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
> +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
>          else
> -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
> +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
>      }
>      [self hideCursor];
>      CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
> 




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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2023-02-27 11:28 ` Christian Schoenebeck
@ 2023-03-13 12:26   ` Christian Schoenebeck
  2023-03-13 13:42     ` BALATON Zoltan
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Schoenebeck @ 2023-03-13 12:26 UTC (permalink / raw)
  To: qemu-devel, Gerd Hoffmann
  Cc: Akihiko Odaki, Peter Maydell, Philippe Mathieu-Daudé

On Monday, February 27, 2023 12:28:02 PM CET Christian Schoenebeck wrote:
> On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
> > While mouse is grabbed, window title contains a hint for the user what
> > keyboard keys to press to release the mouse. Make that hint text a bit
> > more user friendly for a Mac user:
> > 
> >  - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
> >    keys typically displayed for them on a Mac (encode those symbols by
> >    using UTF-8 characters).
> > 
> >  - Drop " + " in between the keys, as that's not common on macOS for
> >    documenting keyboard shortcuts.
> > 
> >  - Convert lower case "g" to upper case "G", as that's common on macOS.
> > 
> >  - Add one additional space at start and end of key stroke set, to
> >    visually separate the key strokes from the rest of the text.
> > 
> > Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> > ---
> 
> Ping

Gerd,

given that I got a RB and TB from Philippe, would you queue this minor macOS
patch please?

Best regards,
Christian Schoenebeck

> >  ui/cocoa.m | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > diff --git a/ui/cocoa.m b/ui/cocoa.m
> > index e915c344a8..289a2b193e 100644
> > --- a/ui/cocoa.m
> > +++ b/ui/cocoa.m
> > @@ -72,6 +72,9 @@
> >  
> >  #define cgrect(nsrect) (*(CGRect *)&(nsrect))
> >  
> > +#define UC_CTRL_KEY "\xe2\x8c\x83"
> > +#define UC_ALT_KEY "\xe2\x8c\xa5"
> > +
> >  typedef struct {
> >      int width;
> >      int height;
> > @@ -1135,9 +1138,9 @@ - (void) grabMouse
> >  
> >      if (!isFullscreen) {
> >          if (qemu_name)
> > -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
> > +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
> >          else
> > -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
> > +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
> >      }
> >      [self hideCursor];
> >      CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
> > 
> 
> 
> 
> 





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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2023-03-13 12:26   ` Christian Schoenebeck
@ 2023-03-13 13:42     ` BALATON Zoltan
  2023-03-13 13:53       ` Christian Schoenebeck
  0 siblings, 1 reply; 9+ messages in thread
From: BALATON Zoltan @ 2023-03-13 13:42 UTC (permalink / raw)
  To: Christian Schoenebeck
  Cc: qemu-devel, Gerd Hoffmann, Akihiko Odaki, Peter Maydell,
	Philippe Mathieu-Daudé

On Mon, 13 Mar 2023, Christian Schoenebeck wrote:
> On Monday, February 27, 2023 12:28:02 PM CET Christian Schoenebeck wrote:
>> On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
>>> While mouse is grabbed, window title contains a hint for the user what
>>> keyboard keys to press to release the mouse. Make that hint text a bit
>>> more user friendly for a Mac user:
>>>
>>>  - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
>>>    keys typically displayed for them on a Mac (encode those symbols by
>>>    using UTF-8 characters).
>>>
>>>  - Drop " + " in between the keys, as that's not common on macOS for
>>>    documenting keyboard shortcuts.
>>>
>>>  - Convert lower case "g" to upper case "G", as that's common on macOS.
>>>
>>>  - Add one additional space at start and end of key stroke set, to
>>>    visually separate the key strokes from the rest of the text.
>>>
>>> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
>>> ---
>>
>> Ping
>
> Gerd,
>
> given that I got a RB and TB from Philippe, would you queue this minor macOS
> patch please?

Isn't this already merged as 23bdd0de97a18 ?

Regards,
BALATON Zoltan

> Best regards,
> Christian Schoenebeck
>
>>>  ui/cocoa.m | 7 +++++--
>>>  1 file changed, 5 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/ui/cocoa.m b/ui/cocoa.m
>>> index e915c344a8..289a2b193e 100644
>>> --- a/ui/cocoa.m
>>> +++ b/ui/cocoa.m
>>> @@ -72,6 +72,9 @@
>>>
>>>  #define cgrect(nsrect) (*(CGRect *)&(nsrect))
>>>
>>> +#define UC_CTRL_KEY "\xe2\x8c\x83"
>>> +#define UC_ALT_KEY "\xe2\x8c\xa5"
>>> +
>>>  typedef struct {
>>>      int width;
>>>      int height;
>>> @@ -1135,9 +1138,9 @@ - (void) grabMouse
>>>
>>>      if (!isFullscreen) {
>>>          if (qemu_name)
>>> -            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press ctrl + alt + g to release Mouse)", qemu_name]];
>>> +            [normalWindow setTitle:[NSString stringWithFormat:@"QEMU %s - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)", qemu_name]];
>>>          else
>>> -            [normalWindow setTitle:@"QEMU - (Press ctrl + alt + g to release Mouse)"];
>>> +            [normalWindow setTitle:@"QEMU - (Press  " UC_CTRL_KEY " " UC_ALT_KEY " G  to release Mouse)"];
>>>      }
>>>      [self hideCursor];
>>>      CGAssociateMouseAndMouseCursorPosition(isAbsoluteEnabled);
>>>
>>
>>
>>
>>
>
>
>
>
>


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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2023-03-13 13:42     ` BALATON Zoltan
@ 2023-03-13 13:53       ` Christian Schoenebeck
  2023-03-13 14:38         ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 9+ messages in thread
From: Christian Schoenebeck @ 2023-03-13 13:53 UTC (permalink / raw)
  To: qemu-devel, Gerd Hoffmann
  Cc: Akihiko Odaki, Peter Maydell, Philippe Mathieu-Daudé,
	BALATON Zoltan

On Monday, March 13, 2023 2:42:36 PM CET BALATON Zoltan wrote:
> On Mon, 13 Mar 2023, Christian Schoenebeck wrote:
> > On Monday, February 27, 2023 12:28:02 PM CET Christian Schoenebeck wrote:
> >> On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
> >>> While mouse is grabbed, window title contains a hint for the user what
> >>> keyboard keys to press to release the mouse. Make that hint text a bit
> >>> more user friendly for a Mac user:
> >>>
> >>>  - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
> >>>    keys typically displayed for them on a Mac (encode those symbols by
> >>>    using UTF-8 characters).
> >>>
> >>>  - Drop " + " in between the keys, as that's not common on macOS for
> >>>    documenting keyboard shortcuts.
> >>>
> >>>  - Convert lower case "g" to upper case "G", as that's common on macOS.
> >>>
> >>>  - Add one additional space at start and end of key stroke set, to
> >>>    visually separate the key strokes from the rest of the text.
> >>>
> >>> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
> >>> ---
> >>
> >> Ping
> >
> > Gerd,
> >
> > given that I got a RB and TB from Philippe, would you queue this minor macOS
> > patch please?
> 
> Isn't this already merged as 23bdd0de97a18 ?

Ah yes, thanks! Sorry for the noise!

Best regards,
Christian Schoenebeck




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

* Re: [PATCH] ui/cocoa: user friendly characters for release mouse
  2023-03-13 13:53       ` Christian Schoenebeck
@ 2023-03-13 14:38         ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-03-13 14:38 UTC (permalink / raw)
  To: Christian Schoenebeck, qemu-devel, Gerd Hoffmann
  Cc: Akihiko Odaki, Peter Maydell, BALATON Zoltan

On 13/3/23 14:53, Christian Schoenebeck wrote:
> On Monday, March 13, 2023 2:42:36 PM CET BALATON Zoltan wrote:
>> On Mon, 13 Mar 2023, Christian Schoenebeck wrote:
>>> On Monday, February 27, 2023 12:28:02 PM CET Christian Schoenebeck wrote:
>>>> On Tuesday, December 27, 2022 5:15:31 PM CET Christian Schoenebeck wrote:
>>>>> While mouse is grabbed, window title contains a hint for the user what
>>>>> keyboard keys to press to release the mouse. Make that hint text a bit
>>>>> more user friendly for a Mac user:
>>>>>
>>>>>   - Replace "Ctrl" and "Alt" by appropriate symbols for those keyboard
>>>>>     keys typically displayed for them on a Mac (encode those symbols by
>>>>>     using UTF-8 characters).
>>>>>
>>>>>   - Drop " + " in between the keys, as that's not common on macOS for
>>>>>     documenting keyboard shortcuts.
>>>>>
>>>>>   - Convert lower case "g" to upper case "G", as that's common on macOS.
>>>>>
>>>>>   - Add one additional space at start and end of key stroke set, to
>>>>>     visually separate the key strokes from the rest of the text.
>>>>>
>>>>> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
>>>>> ---
>>>>
>>>> Ping
>>>
>>> Gerd,
>>>
>>> given that I got a RB and TB from Philippe, would you queue this minor macOS
>>> patch please?
>>
>> Isn't this already merged as 23bdd0de97a18 ?
> 
> Ah yes, thanks! Sorry for the noise!

Sorry my bad, back then I forgot to reply to the patch mentioning
I'd queue this patch.


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

end of thread, other threads:[~2023-03-13 14:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-27 16:15 [PATCH] ui/cocoa: user friendly characters for release mouse Christian Schoenebeck
2022-12-29  9:24 ` Christian Schoenebeck
2022-12-29 12:31 ` Philippe Mathieu-Daudé
2022-12-30 14:01   ` Christian Schoenebeck
2023-02-27 11:28 ` Christian Schoenebeck
2023-03-13 12:26   ` Christian Schoenebeck
2023-03-13 13:42     ` BALATON Zoltan
2023-03-13 13:53       ` Christian Schoenebeck
2023-03-13 14:38         ` Philippe Mathieu-Daudé

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).