holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

Pressing Esc in JupyterLab makes command mode unresponsive #249

Open vsantalov opened 2 years ago

vsantalov commented 2 years ago

After pressing Esc in Jupyterlab to enter command mode no other keys can be registered. For example, jk wont work for going up or down, b will not create a new line, etc. However, if I first touch the screen anywhere within the Carnets app, the command mode keys work as expected. It is as if the window loses focus on Esc. Despite the easy workaround it breaks the keyboard-only workflow. I use Logitech folio keyboard with the CapsLock key remapped to Esc. Same problem when emulating Esc with ctrl+m.

holzschu commented 2 years ago

Hi, thanks for raising this issue. I'll have a look. I suspect the Escape key is intercepted by the Web window, and makes it release the keyboard focus.