mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 22:26:40 +08:00
Fix Bug 71299
This commit is contained in:
@ -60,7 +60,8 @@ Common.UI.ScreenReaderFocusManager = new(function() {
|
||||
_isEditDiagram = false,
|
||||
_isSidePanelMode = false,
|
||||
_api,
|
||||
_app;
|
||||
_app,
|
||||
_appPrefix;
|
||||
|
||||
var _setCurrentSection = function (btn, section) {
|
||||
_lastSection = _currentSection;
|
||||
@ -268,6 +269,9 @@ Common.UI.ScreenReaderFocusManager = new(function() {
|
||||
_app = window.DE || window.PE || window.SSE || window.PDFE;
|
||||
_isDocReady = true;
|
||||
|
||||
var filter = Common.localStorage.getKeysFilter();
|
||||
_appPrefix = (filter && filter.length) ? filter.split(',')[0] : '';
|
||||
|
||||
if ( !Common.Utils.ScreeenReaderHelper ) {
|
||||
require(['common/main/lib/util/ScreenReaderHelper'], function () {
|
||||
Common.Utils.ScreeenReaderHelper.setEnabled(true);
|
||||
@ -399,7 +403,8 @@ Common.UI.ScreenReaderFocusManager = new(function() {
|
||||
}
|
||||
});
|
||||
$(document).on('keydown', function(e) {
|
||||
_needShow = e.keyCode == Common.UI.Keys.ALT && !e.shiftKey && !Common.Utils.ModalWindow.isVisible() && _isDocReady && !(window.PE && $('#pe-preview').is(':visible'));
|
||||
_needShow = Common.Utils.InternalSettings.get(_appPrefix + "settings-show-alt-hints") && e.keyCode == Common.UI.Keys.ALT && !e.shiftKey &&
|
||||
!Common.Utils.ModalWindow.isVisible() && _isDocReady && !(window.PE && $('#pe-preview').is(':visible'));
|
||||
|
||||
// Add outline style for focus elements for test
|
||||
if (Common.localStorage.getBool('screen-reader-focus-mode', false)) {
|
||||
|
||||
Reference in New Issue
Block a user