I am trying to assign a short cut key to "Run selected text or current line in console" by passing the below code in settings>Advanced Settings editor>Keyboard Shortcuts> user overrides .
{
"title": "Run In Console",
"selector": ".jp-Notebook.jp-mod-editMode",
"keys": [
"F9"
],
"category": "Notebook Cell Operations",
"command": "notebook:run-in-console"
}
I can see the above code also in my /home//.jupyter/lab/user-settings/@jupyterlab/shortcuts-extension/plugin.jupyterlab-settings