Script Runner

Next
 From:  vector illustrator (QUARITEXA)
9638.1 
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:

Image Attachments:
Size: 1.3 MB, Downloaded: 60 times, Dimensions: 308x542px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9638.2 In reply to 9638.1 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  vector illustrator (QUARITEXA)
9638.3 In reply to 9638.2 
How to define buttons is understandable. And how do you change the focus on the menu items?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
9638.4 In reply to 9638.3 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All