Skip to content

Commit

Permalink
Merge branch 'feature/launch-controller' of https://github.com/ONLYOF…
Browse files Browse the repository at this point in the history
…FICE/web-apps into feature/launch-controller
  • Loading branch information
maxkadushkin committed Mar 10, 2024
2 parents b2cfe16 + f32bcf3 commit 1c6381f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions apps/common/main/lib/controller/ScreenReaderFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,20 +265,15 @@ Common.UI.ScreenReaderFocusManager = new(function() {
if (Common.Utils.isIE || Common.UI.isMac && Common.Utils.isGecko) // turn off hints on IE and FireFox (shortcut F6 selects link in address bar)
return;
_api = api;

_app = window.DE || window.PE || window.SSE || window.PDFE;
_isDocReady = true;

Common.NotificationCenter.on({
'app:ready': function (mode) {
_isDocReady = true;
if ( !Common.Utils.ScreeenReaderHelper ) {
require(['common/main/lib/util/ScreenReaderHelper'], function () {
Common.Utils.ScreeenReaderHelper.setEnabled(true);
});
}

if ( !Common.Utils.ScreeenReaderHelper ) {
require(['common/main/lib/util/ScreenReaderHelper'], function () {
Common.Utils.ScreeenReaderHelper.setEnabled(true);
});
}
}
});
$('#editor_sdk').on('click', function () {
_exitFocusMode();
});
Expand Down

0 comments on commit 1c6381f

Please sign in to comment.