I found two strange things while working with the MenuBar / MenuItem / Delete Key Shortcut.
How can I set a MenuHandler for EditDelete ?
I do not recall what happened with the previous versions of Xojo / RS / RB
In other words, I add a new MenuHandler, go to the field to set it with a name, so I click in the drop down menu and found no entry for EditDelete.
How can I set the fn key in a keyboard shortcut (portable hardware with all OS: Linux, OS X, Windows) ?
OS X use them on MacBook Pro (I cannot tell about desktop computers) with the Function keys (swap from Fx to icon on the key).
I cannot do (1) so I changed my idea and add a new MenuItem in the Utilities Menu:
Delete One Row.
Because I do not remember how I had to code the MenuEditor to get a Delete icon as the Keyboard shortcut, I searched in the documentation and found nothing. So, I simply wrote Delete and it worked. In fact, I mean: I get the Delete icon I was looking for.
Now, does it works ?
Ive made several tests to I do not remember, I have to go back to my testings. But know that using the mouse, I was able to delete the selected Row of a ListBox, just as I intended to do.
Back from testings:
Cmd-5 works fine. But, one key and the delete key is better:
Delete (instead of 5): Beep * only (does not works),
Shift: Beep (does not works),
Option: Beep (does not works).
I gave up and I wil use cmd-D !
NB: Xojo (the IDE) use the Delete keyboard shortcut (and the icon). So, it is possible to do that, but how ? And with or without declare ?
With that IDE, Beep is everywhere, so be careful (with that axe, Eugene)
OS X 10.8.5