You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I prefer to use Ctrl-P/N/F/B/D/K/Y/D/A/E on macOS to control the cursor on text. On Pluto notebook, It seems Ctrl-P/N/F/B/K/A/E works as described in Document shortcuts section of Mac keyboard shortcuts: https://support.apple.com/en-us/HT201236.
Unfortunately Ctrl-D does not work as Control-D: Delete the character to the right of the insertion point..
Since line in KeyboardShortcuts.js tries to replace Ctrl-blah-blah in with Cmd-blah-blah in keymap, one may think this is fine.
using delete to remove Ctrl-... key from keymap_with_cmd works.
exportletmap_cmd_to_ctrl_on_mac=(keymap)=>{if(!is_mac_keyboard){returnkeymap}letkeymap_with_cmd={ ...keymap}for(let[key,handler]ofObject.entries(keymap)){keymap_with_cmd[key.replace(/Ctrl/g,"Cmd")]=handlerdeletekeymap_with_cmd[key]// delete Ctrl-blah-blah e.g. Ctrl-D or Ctrl-M etc ...}returnkeymap_with_cmd}
Thanks! Feel free to make a PR, but note that removing the Ctrl- shortcuts will break other shortcuts, e.g. Ctrl-M for md""" (i am not sure if there are others), so take that into account.
I prefer to use Ctrl-P/N/F/B/D/K/Y/D/A/E on macOS to control the cursor on text. On Pluto notebook, It seems Ctrl-P/N/F/B/K/A/E works as described in
Document shortcuts
section of Mac keyboard shortcuts: https://support.apple.com/en-us/HT201236.Unfortunately
Ctrl-D
does not work asControl-D: Delete the character to the right of the insertion point.
.Since line in
KeyboardShortcuts.js
tries to replaceCtrl-blah-blah
in withCmd-blah-blah
inkeymap
, one may think this is fine.Pluto.jl/frontend/common/KeyboardShortcuts.js
Line 14 in cd7c123
However, this lines assigns
Ctrl-D
shortcut to do something (selecting some words ???)Pluto.jl/frontend/components/CellInput.js
Lines 151 to 162 in 28615ad
If I remove this lines above, I can use Ctrl-D to delete the character to the right, which is what I expect on macOS.
Note that if one would like to use
Ctrl-D
functionality that Pluto.jl provides on macOS, one only have to do useCmd+D
(due to this linePluto.jl/frontend/common/KeyboardShortcuts.js
Line 14 in cd7c123
Do we need insert conditional branch something like ?
Any thoughts about this issue ?
The text was updated successfully, but these errors were encountered: