Why trigger F11 press event doesn't work?

前端 未结 4 942
梦毁少年i
梦毁少年i 2020-12-06 11:24

I just read this question: Full Screen Page by pressing button instead of F11
The op asked to replace F11 with other hot keys, so I\'m wondering that maybe I

4条回答
  •  执笔经年
    2020-12-06 12:06

    You won't be able to override the browser's built-in hotkeys from within a web page.

    You might be able to do it in a browser extension, but that's would surely be serious overkill just to change the application's hotkeys.

    In any case, why would you even want to override the standard keyboard shortcuts? I don't get that. They've been standard for a long time; most users will be familiar with them, and will find it very odd if they've been changed to something else.

提交回复
热议问题