1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-29 09:38:59 +02:00
This commit is contained in:
Pomax
2020-08-09 22:32:58 -07:00
parent 4d4112d2b6
commit 5c537c3705
29 changed files with 4510 additions and 33 deletions

View File

@@ -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);
}
}