Skip to content

Fix issue where conflicting keyboard shortcuts would prevent layer panel navigation#89

Draft
igorski wants to merge 1 commit intomasterfrom
layer-shortcuts
Draft

Fix issue where conflicting keyboard shortcuts would prevent layer panel navigation#89
igorski wants to merge 1 commit intomasterfrom
layer-shortcuts

Conversation

@igorski
Copy link
Copy Markdown
Owner

@igorski igorski commented Apr 12, 2026

Motivation

When the pan or drag tools are selected (or a selection is active) the keyboard shortcuts in the layer panel would not allow navigating the layers list.

When the layer panel is focused no outside keyboard shortcuts should be captured.

@igorski igorski self-assigned this Apr 12, 2026
if ( listenerCapturesAll && keyCode !== 90 ) {
return; // unless "Z" is pressed (for undo/redo actions, skip remaining handling functions)
if ( handled ) {
event.preventDefault();
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reuse preventDefault function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant