mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-29 09:38:59 +02:00
.
This commit is contained in:
@@ -145,8 +145,9 @@ class BaseAPI {
|
||||
*/
|
||||
safelyInterceptKey(evt) {
|
||||
// We don't want to interfere with the browser, so we're only
|
||||
// going to allow unmodified keys, or shift-modified keys.
|
||||
if (!evt.altKey && !evt.ctrlKey && !evt.metaKey) {
|
||||
// going to allow unmodified keys, or shift-modified keys,
|
||||
// and tab has to always work. For obvious reasons.
|
||||
if (!evt.altKey && !evt.ctrlKey && !evt.metaKey && evt.key !== "Tab") {
|
||||
stop(evt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user