From: vector illustrator (QUARITEXA)
I make script, hotkey and command runner with fuzzy filter and history. Is it possible to select items from a list using not only mouse, but the keyboard?
Attachments:
200105181645.mp4
Image Attachments:
gif.gif
From: Michael Gibson
Hi Quaritexa,
re:
> Is it possible to select items from a list using not only mouse, but the keyboard?
A dialog window that has keyboard focus will get a chance to handle all keystrokes by implementing OnKeyDownEvent and/or OnKeyUpEvent script functions on it. Check out ShortcutKeyDialog.htm for an example.
- Michael
From: vector illustrator (QUARITEXA)
How to define buttons is understandable. And how do you change the focus on the menu items?
From: Michael Gibson
Hi Quaritexa,
re:
> And how do you change the focus on the menu items?
I'll probably need some more detailed information on what you're doing. Are you using <moi:MenuItem> elements there and you want some of them to have a highlighted background?
If so you could try switching to <moi:ListItem> elements instead, a <moi:ListItem> inherits from StateButton which means it has a .value property and if that is set to true it will display with a different state.
A <moi:MenuItem> element does not have a built in way to display a different background like that, it only has a .checked property for showing a checkmark or not.
- Michael