The function will suppress events on line 971 unless handled has been set true, or if a case returns false, like on line 908.
This makes it impossible to implement key listeners further up the hierarchy in the bubble phase.
Important: Make sure to document any changes to Resources/JqueryUI-1.11.4.custom/jquery-ui.js in Resources/JqueryUI-1.11.4.custom/README-FitUiCustomJqueryUiBuild.txt !
And do be aware that changing the implementation of keyboard events might cause breaking changes - for instance in a <form> element which might submit when ENTER is pressed, if we decide to no longer suppress key strokes events.
The DatePicker control, which is based on jQuery UI's DatePicker, unfortunately implements some bad practices when it comes to event handling.
It all starts in _doKeyDown: https://github.com/Jemt/Fit.UI/blob/master/Resources/JqueryUI-1.11.4.custom/jquery-ui.js#L879
The function will suppress events on line 971 unless
handled
has been settrue
, or if a case returns false, like on line 908.This makes it impossible to implement key listeners further up the hierarchy in the bubble phase.
Important: Make sure to document any changes to Resources/JqueryUI-1.11.4.custom/jquery-ui.js in Resources/JqueryUI-1.11.4.custom/README-FitUiCustomJqueryUiBuild.txt !
And do be aware that changing the implementation of keyboard events might cause breaking changes - for instance in a
<form>
element which might submit when ENTER is pressed, if we decide to no longer suppress key strokes events.