# Binding "O" vs "I" to a keyboard shortcut

**URL:** https://discourse.jupyter.org/t/binding-o-vs-i-to-a-keyboard-shortcut/10742
**Category:** JupyterLab
**Created:** [September 13, 2021, 1:58am UTC](https://discourse.jupyter.org/t/binding-o-vs-i-to-a-keyboard-shortcut/10742 "2021-09-13T01:58:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Wu](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/michael_wu/32/5198_2.png) [@Michael\_Wu](https://discourse.jupyter.org/u/Michael_Wu)
#### Post date: [September 13, 2021, 1:58am UTC](https://discourse.jupyter.org/t/binding-o-vs-i-to-a-keyboard-shortcut/10742/1 "2021-09-13T01:58:36Z")

</div>

I am trying to bind “I” to `notebook:enter-edit-mode`. Unfortunately, when I press “I”, there is a ~1s delay before edit mode is entered. On the contrary, if I bind “O” or “Enter” to `notebook:enter-edit-mode`, edit mode is instantaneously entered.

I hypothesize this is because when I type “I”, JupyterLab is waiting to see if I’m going to press another key, whereas JupyterLab doesn’t do this for “O” or “Enter”.

---

<div class="post-metadata">

### Author: ![jasongrout](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jasongrout/32/371_2.png) [@jasongrout](https://discourse.jupyter.org/u/jasongrout)
#### Post date: [September 13, 2021, 10:30am UTC](https://discourse.jupyter.org/t/binding-o-vs-i-to-a-keyboard-shortcut/10742/2 "2021-09-13T10:30:34Z")

</div>

Yes, that is exactly what is going on. The difference here is that there is a shortcut " I I", i.e., two consecutive presses of the I key ( [jupyterlab/plugin.json at b89064d77803c4b10fe2fc44d885507d2aa3051a · jupyterlab/jupyterlab · GitHub](https://github.com/jupyterlab/jupyterlab/blob/b89064d77803c4b10fe2fc44d885507d2aa3051a/packages/mainmenu-extension/schema/plugin.json#L272) ). Jlab waits for a second or so to see if you are going to press a second I or not. You’ll need to disable that shortcut of you want immediate action on a single press.
