I don’t know how to replace the F5 key action in SAPUI5. I have a button “Refresh” which is reloading my business data in the UI and made some kind of manipulation before showing it on the view. I want to catch the F5-press so that my method to refresh can be called. Answer Just add an event listener to
Tag: keyevent
Detecting keydown/up events during HTML5 native drag
I’ve an element that can be dragged using native HTML5. It has dragstart, drag, and dragend event listeners assigned to it. In addition, I also have keydown and keyup event listeners assigned to document.body element. When dragging the draggable element, ondrag event will fire as expected. When I press & release any key while not dragging anything, document.body keydown/up events