jupyter-widgets / ipydatagrid

Fast Datagrid widget for the Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
582 stars 52 forks source link

Add ipydatagrid-specific KeyHandler class to control keydown events #214

Closed ibdafna closed 3 years ago

ibdafna commented 3 years ago

Issue number of the reported bug or feature request: #203

Describe your changes Added an ipydatagrid-specific KeyHandler class to control the behaviour of keydown events. This allows us to address the issue where users cannot enter command mode on notebooks due to events being intercepted in the hierarchy above the ipydatagrid canvas. The new behaviour for an Escape key press event is as follows:

Testing performed Tested working as expected on both JupyterLab3 and Jupyter Notebook

Additional context No additional context.