@enact/spotlight
Advanced tools
Comparing version 4.7.3 to 4.7.4
@@ -5,2 +5,6 @@ # Change Log | ||
## [4.7.4] - 2023-08-31 | ||
No significant changes. | ||
## [4.7.3] - 2023-08-10 | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "@enact/spotlight", | ||
"version": "4.7.3", | ||
"version": "4.7.4", | ||
"description": "A focus management library", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"dependencies": { | ||
"@enact/core": "^4.7.3", | ||
"@enact/core": "^4.7.4", | ||
"classnames": "^2.3.2", | ||
@@ -30,0 +30,0 @@ "prop-types": "^15.8.1", |
@@ -154,3 +154,4 @@ "use strict"; | ||
var notifyKeyDown = function notifyKeyDown(keyCode, callback) { | ||
var palmSystem = window.PalmSystem; | ||
var _window$webOSSystem; | ||
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem; | ||
@@ -164,3 +165,3 @@ // for hide/show pointer events, handle them and return true | ||
return true; | ||
} else if (!(0, _keymap.is)('nonModal', keyCode) && !(0, _keymap.is)('cancel', keyCode) && !((0, _keymap.is)('enter', keyCode) && palmSystem && palmSystem.cursor && palmSystem.cursor.visibility)) { | ||
} else if (!(0, _keymap.is)('nonModal', keyCode) && !(0, _keymap.is)('cancel', keyCode) && !((0, _keymap.is)('enter', keyCode) && webOSSystem && webOSSystem.cursor && webOSSystem.cursor.visibility)) { | ||
setPointerMode(false); | ||
@@ -167,0 +168,0 @@ } |
@@ -139,13 +139,15 @@ "use strict"; | ||
function setPlatformPointerMode() { | ||
var palmSystem = window.PalmSystem; | ||
if (palmSystem && palmSystem.cursor) { | ||
(0, _pointer.setPointerMode)(palmSystem.cursor.visibility); | ||
var _window$webOSSystem; | ||
var webOSSystem = (_window$webOSSystem = window.webOSSystem) !== null && _window$webOSSystem !== void 0 ? _window$webOSSystem : window.PalmSystem; | ||
if (webOSSystem && webOSSystem.cursor) { | ||
(0, _pointer.setPointerMode)(webOSSystem.cursor.visibility); | ||
} | ||
} | ||
function focusElement(elem, containerIds, fromPointer) { | ||
var _window$PalmSystem$cu; | ||
var _window$webOSSystem2, _webOSSystem$cursor; | ||
if (!elem) { | ||
return false; | ||
} | ||
if ((0, _pointer.getPointerMode)() && !fromPointer && ((0, _inputType.getInputType)() === 'touch' || typeof window !== 'undefined' && (!window.PalmSystem || (_window$PalmSystem$cu = window.PalmSystem.cursor) !== null && _window$PalmSystem$cu !== void 0 && _window$PalmSystem$cu.visibility))) { | ||
var webOSSystem = (_window$webOSSystem2 = window.webOSSystem) !== null && _window$webOSSystem2 !== void 0 ? _window$webOSSystem2 : window.PalmSystem; | ||
if ((0, _pointer.getPointerMode)() && !fromPointer && ((0, _inputType.getInputType)() === 'touch' || typeof window !== 'undefined' && (!webOSSystem || (_webOSSystem$cursor = webOSSystem.cursor) !== null && _webOSSystem$cursor !== void 0 && _webOSSystem$cursor.visibility))) { | ||
(0, _container.setContainerLastFocusedElement)(elem, containerIds); | ||
@@ -152,0 +154,0 @@ return false; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403850
7979
Updated@enact/core@^4.7.4