Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

handle preventDefault per-keybind #3906 #4176

Closed
wants to merge 1 commit into from
Closed

handle preventDefault per-keybind #3906 #4176

wants to merge 1 commit into from

Conversation

adamschachne
Copy link

By default, all keybinds are having their defaults prevented. This PR only calls preventDefault on keys that are not combined with ctrl, shift, or alt, because those are modifiers for normal browser hotkeys.

The same should probably be done for scroll events, considering that ctrl+scrollwheel will simultaneously zoom in/out on the canvas as well as the window. Perhaps there should be an interaction option that allows which keybinds should propogate?

Looking forward to feedback.

@YakovL
Copy link

YakovL commented Jan 9, 2019

FYI, Vivaldi supports one-key shortcuts, so I'm not sure this is a proper suggestion. Does this default prevention cause any actual problems?

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants