Skip to content

Cannot use input widgets whilst listening to keyboard events #57

@agoose77

Description

@agoose77

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

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 🤮

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions