Called when user presses a keyboard key and popup is open.
onKeydown = function(event)
The event will only be triggered if
.keyboard property of the sidebar is true.
You can add event listener during the object creation:
or after popup is opened:
The event handler is called before the default action of the event is triggered. You can cancel the default action by calling
event.preventDefault(). To perform an action
after the event is fully processed, define
event.onComplete function.
See
events page in utilities for more details.