This might only apply to the FloatText/IntText, but I assume it might be a broader issue.
By calling preventDefault on the widget, we lose the ability to enter values into widgets.
|
event.stopPropagation() |
|
event.preventDefault() |
Perhaps a solution here would be to enable a list of keycodes that are either ignored, or always blocked. I was thinking otherwise the Python event handler could veto the blocking, but that would add the roundtrip time to each event 🤮
This might only apply to the FloatText/IntText, but I assume it might be a broader issue.
By calling preventDefault on the widget, we lose the ability to enter values into widgets.
ipyevents/src/events.ts
Lines 268 to 269 in b6a94c7
Perhaps a solution here would be to enable a list of keycodes that are either ignored, or always blocked. I was thinking otherwise the Python event handler could veto the blocking, but that would add the roundtrip time to each event 🤮