Changing duplicate a line hotkey in Jupyter notebook To duplicate a line in Jupyter-notebook on a Mac, the hotkey is cmd + shift + D. The problem is I use Google Chrome, and this is the same hotkey to bookmark a webpage, which takes priority over the hotkey in Jupyter-notebook. Has anyone struggled with this before, and found a workaround? I would probably prefer to use this hotkey for duplicating a line because it's the same hotkey I use in IDEs and text editors.
You can change the Chrome shortcut like this:
In System Preferences &gt; Keyboard &gt; Shortcuts &gt; App Shortcuts, click the [+] button, and select Google Chrome as the Application. Put Bookmarks-&gt;Bookmark All Tabs... in the Menu Title and a different Keyboard Shortcut.