Unbinding `Right Alt + G` from JupyterLab

A student has what I think is a “MacBook Swiss QWERTZ keyboard” that has the @ at-sign on the G key, like this:

They are able to type @ just fine by pressing Right Alt/Option(?) + G on, say, the address bar. However, on JupyterLab, that keyboard shortcut seems to be bound to “go to line” or something like that. I can’t debug it very well because I have a Linux laptop with a different keyboard layout.

From my understanding, there are two solutions here: (1) changing the keyboard layout and (2) modifying JupyterLab keyboard shortcuts. Focusing on the second one, I tried to search how to do it, without success: I arrived to The JupyterLab Interface — JupyterLab 3.3.0a2 documentation, but it’s not clear to me how can I instruct them to do the change. On my JupyterLab I see two shortcuts bound to [Modifier] + G, but they don’t seem related:

        {
            "command": "documentsearch:highlightNext",
            "keys": [
                "Accel G"
            ],
            "selector": ".jp-mod-searchable"
        },
        {
            "command": "documentsearch:highlightPrevious",
            "keys": [
                "Accel Shift G"
            ],
            "selector": ".jp-mod-searchable"
        },

Do these shortcuts change across operating systems? And in any case, any idea of what would be the right combination here?

Thanks in advance!

See https://github.com/jupyterlab/jupyterlab/issues/9801 and the workaround I posted at https://github.com/jupyterlab/jupyterlab/issues/7704#issuecomment-1022911680. We also had a long discussion in the weekly dev meeting yesterday about keyboard shortcuts based inspired by these issues.

3 Likes