Skip to content

Commit

Permalink
[common] Fix screen reader focus controller for new lounch controller
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSvinareva committed Mar 6, 2024
1 parent 6289860 commit f32bcf3
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 f32bcf3

Please sign in to comment.