Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] NSMenuItemMBS shortcuts (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Next thread: [MBS] PIctureMBS.CopyPictureWithoutMaskMBS


[MBS] MBS 7.5 with RB2010r4.1   -   Garth Hjelte
  [MBS] NSMenuItemMBS shortcuts   -   Jean-Luc Arnaud
   Re: [MBS] NSMenuItemMBS shortcuts   -   Jean-Luc Arnaud
    Re: [MBS] NSMenuItemMBS shortcuts   -   Christian Schmitz

[MBS] NSMenuItemMBS shortcuts
Date: 30.06.17 16:27 (Fri, 30 Jun 2017 17:27:18 +0200)
From: Jean-Luc Arnaud
Hi,

Is there a way to add a Keyboard Shortcut to a NSMenuItemMBS?

Don't find the answer in the MBS Cocoa Plugin PDF file.

TIA for your help.

Re: [MBS] NSMenuItemMBS shortcuts
Date: 30.06.17 16:51 (Fri, 30 Jun 2017 17:51:53 +0200)
From: Jean-Luc Arnaud
Found, I had to read the MBS CocoaBase PDF file.

Now that I have a shortcut, what is the best way to deal with it?

Currently, my menu appears in the Menu bar, it works very well using the
mouse, but the shortcut does not. It works only if I first open the menu
with the mouse, let it open and finally press my shortcut with
Command-Shift modifiers. When the menu is closed, my shortcut does not
react.

TIA for your help

Jean-Luc Arnaud

Le 30/06/2017 à 17:27, Jean-Luc Arnaud a écrit :
> Hi,
>
> Is there a way to add a Keyboard Shortcut to a NSMenuItemMBS?
>
> Don't find the answer in the MBS Cocoa Plugin PDF file.
>
> TIA for your help.
>

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] NSMenuItemMBS shortcuts
Date: 30.06.17 20:00 (Fri, 30 Jun 2017 21:00:28 +0200)
From: Christian Schmitz

>
> Currently, my menu appears in the Menu bar, it works very well using the
> mouse, but the shortcut does not. It works only if I first open the menu
> with the mouse, let it open and finally press my shortcut with
> Command-Shift modifiers. When the menu is closed, my shortcut does not
> react.

Looks like Xojo takes the keys and the automatic keyboard stuff does not happen.
NSEventMonitorMBS class can help.

Sincerely
Christian