=0 ? ‘&’ : ‘?’); url += (‘d=’ + domain); } // It’s better to clean UI resource before redirecting, // just like redirecting from touchui to richui BrowserUtil.redirectToUrl(url); } // redirect to accessibility page when pressing ctrl + shift + s var offerAUI = function () { var now = Math.floor(new Date().getTime() / 1000); if((now – window.auiSwitchRegistration) > WebtopConfig.common.auiMaxOfferSeconds) { return; } Ext.Msg.confirm( Ext.String.capitalize(Locale.common.WARNING), Locale.app.message.CONFIRM_SWITCH_TO_ACCESSUI, function (answer) { if (answer == ‘yes’) { var url = WebtopConfig.common.accessibilityUrl; if (url) { // Extract domain information from the following rules: // 1. Use the domain of user name, else // 2. Get the domain from the app URL parameter “d”, else // 3. Use the user domain configured in the webtop config. var userName = Richui.model.User.get(‘userName’); if ((typeof userName == ‘string’) && (userName.indexOf(‘@’) != -1)) { var callback = function() { redirectToAUI(userName); } setDefaultUI(“access”, callback); } } } } ); } document.onkeydown = function (e) { if (e && e.keyCode == 8){ if(e.target.tagName === ‘INPUT’ && e.target.readOnly != true) return; if(e.target.tagName === ‘TEXTAREA’ && e.target.readOnly != true) return; if(e.target.getAttribute(‘contentEditable’)) return; e.preventDefault(); } var conf = WebtopConfig.accessSwitch.keyCombination; if (e && e.keyCode === conf.keyCode && (e.ctrlKey == conf.ctrlKey) && (e.shiftKey == conf.shiftKey)) { window.auiSwitchCounter++; window.auiTabSwitchCounter = 0; if (window.auiSwitchCounter === conf.numberOfPresses) { window.auiSwitchCounter = 0; offerAUI(); } } else if (e && e.keyCode === 9) { // TAB window.auiSwitchCounter = 0; window.auiTabSwitchCounter++; if (window.auiTabSwitchCounter === 5) { window.auiTabSwitchCounter = 0; offerAUI(); } } else { window.auiSwitchCounter = 0; window.auiTabSwitchCounter = 0; } }; } var checkExistsRichui = setInterval(function() { if (window.Richui) { clearInterval(checkExistsRichui); registerKeyDowns(); } }, 100); ]]>
Source
The post appeared first on Best Reviews and Recommendations.
http://ifttt.com/images/no_image_card.png
https://hiccupsandkicks.co.uk/2022/02/26/7911/
http://ifttt.com/images/no_image_card.png
https://hiccupsandkicksuk.tumblr.com/post/677262824836399104
No comments:
Post a Comment