How to disable pressing F5 #3844
-
On Windows |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Apr 2, 2022
Replies: 1 comment 7 replies
-
Currently you need to overwrite the f5 event via If you need a context menu you'd have to create one with html/js, therefore i generally recommend making your app "reload-proof" for example by always caching relevant values. |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
linesoft2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently you need to overwrite the f5 event via
addEventListener
(including theevent.preventDefault()
).Furthermore you probably would need to disable the
contextmenu
event too since the menu has areload
option.If you need a context menu you'd have to create one with html/js, therefore i generally recommend making your app "reload-proof" for example by always caching relevant values.