@jetbrains/ring-ui 6.0.54 → 6.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,9 +156,9 @@ class Shortcuts {
|
|
|
156
156
|
!(element instanceof HTMLElement) ||
|
|
157
157
|
key == null ||
|
|
158
158
|
element.matches(this.ALLOW_SHORTCUTS_SELECTOR) ||
|
|
159
|
-
element.
|
|
160
|
-
|
|
161
|
-
element.
|
|
159
|
+
(element.dataset.enabledShortcuts != null
|
|
160
|
+
? element.dataset.enabledShortcuts.split(',').includes(key)
|
|
161
|
+
: element.closest(this.ALLOW_SHORTCUTS_SELECTOR) != null)) {
|
|
162
162
|
return false;
|
|
163
163
|
}
|
|
164
164
|
const elementContentEditableAttribute = element.contentEditable;
|