2/18/2023 0 Comments Shortcut to reopen closed window![]() ![]() Richly interactive web sites, games and remote desktop/application streaming experiences want to provide an immersive, full screen experience. This is possible using the (currently experimental) Keyboard Lock API, which is available in Chrome and Edge (but not currently in IE, Firefox, or Safari): Is there a way to prevent Edge from reopening the previous tab or window when pressing Ctrl + Shift + T using JavaScript? Maybe my JavaScript chops are getting a little rusty. In fact, the browser console does not even register a log message for the T key, as denoted by event.ke圜ode 84. The Edge keyboard shortcut is still taking precedence. I was hoping to "cancel" the keyboard events using JavaScript so Edge does not reopen the previously open tab or window. ![]() ![]() SetTimeout(function(), 200) ĭ("keydown", logKeys) ĭ("keypress", logKeys) ĭ("keyup", logKeys) I got playing around a little bit, trying to circumvent this using JavaScript: Ĭonsole.log(event.type + ": " + event.ke圜ode) Reference: Keyboard Shortcuts in Microsoft Edge. The problem is Microsoft Edge hooks in to this key combo to reopen the previously closed tab or window, and then switch to it. We have a web application that defines a bunch of keyboard shortcuts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |