Add Left/Right arrow keyboard shortcuts to switch models#651
Open
henrikvilhelmberglund wants to merge 1 commit into
Open
Add Left/Right arrow keyboard shortcuts to switch models#651henrikvilhelmberglund wants to merge 1 commit into
henrikvilhelmberglund wants to merge 1 commit into
Conversation
Exposes prev/next file navigation on NAMFileBrowserControl as public methods and installs a plugin-level key handler that maps kVK_LEFT and kVK_RIGHT (no modifiers) to the model browser's prev/next actions. Requires the plugin window to have keyboard focus. Text entries and other controls that consume the key still take precedence. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds left and right arrow keyboard shortcuts for changing the current model in the model list. You click in the VST window to give focus to the VST, then left or right arrow to change the model, the model loading wraps end to start like the UI arrows. There are no other shortcuts for loading/clearing and such, I was only interested in changing models quickly without reaching for the mouse.
The code was written using Claude.
Description
(by Claude)
Exposes prev/next file navigation on NAMFileBrowserControl as public methods and installs a plugin-level key handler that maps kVK_LEFT and kVK_RIGHT (no modifiers) to the model browser's prev/next actions. Requires the plugin window to have keyboard focus. Text entries and other controls that consume the key still take precedence.
PR Checklist
format.bash?Unserialization.cpp.)