Working with keyboard shortcuts

Hi all,

I found two strange things while working with the MenuBar / MenuItem / Delete Key Shortcut.

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

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

  3. 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 ?

I’ve 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)…

Xojo 2013r4
OS X 10.8.5

[quote=56400:@Emile Schwarz]

  1. 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.
    [/quo]te
    Click on the menu in the menu editor & note that the name of the item is EditClear - not edit delete
    Set a menu handler for EditClear

Read the docs & note that Function keys can be set using Fn1 through Fn9 etc
See http://documentation.xojo.com/index.php/MenuItem under Specifying the keyboard shortcut in the Menu Editor

I think fn-key means this: http://en.wikipedia.org/wiki/Fn_key