Skip to main content
Known Participant
October 18, 2013
Answered

keyboard shortcuts

  • October 18, 2013
  • 1 reply
  • 1248 views

I'd like to do things like change focus for items in an LrView and also expand specific popup menus using certain keypresses (for example, by overriding default behaviors on the cursor buttons). How doable is that under the Lightroom SDK? I've looked over the documentation and seen little if any mention of this subject.

This topic has been closed for replies.
Correct answer johnrellis

The SDK provides almost no support.  On Windows, you can use & in button labels to define alt-key shortcuts, e.g. "&Next" will define alt-n as the shortcut for the button labeled "Next".  But that's about it.  There's no way to change focus.

Some plugin authors have used Autohotkey on Windows and Applescript on Mac to generate ("stuff") keystroke / UI events, but I think the general consensus is those approaches are fragile and difficult to make work reasonably well, much less maintain over subsequent releases of LR.

1 reply

johnrellis
johnrellisCorrect answer
Legend
October 18, 2013

The SDK provides almost no support.  On Windows, you can use & in button labels to define alt-key shortcuts, e.g. "&Next" will define alt-n as the shortcut for the button labeled "Next".  But that's about it.  There's no way to change focus.

Some plugin authors have used Autohotkey on Windows and Applescript on Mac to generate ("stuff") keystroke / UI events, but I think the general consensus is those approaches are fragile and difficult to make work reasonably well, much less maintain over subsequent releases of LR.

Known Participant
October 19, 2013

Thanks for that, it's good to know where the limits of this world lie.   I suppose that could be an avenue for future UI API support, assuming some Google Chrome-based UI isn't provided first.

Is there at least a way to expand a popup_menu programmatically? (that is, without clicking on it)? ideally i could tab over to it (and tabs do seem to go from UI form element to form element, but i'm doubtful about what happens when i try to put invisible UI form elements in the way).

johnrellis
Legend
October 19, 2013

Is there at least a way to expand a popup_menu programmatically? (that is, without clicking on it)?

I don't think so.