mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[cm6] Use Cmd on macOS for cloneSelectionVertically (#12855)
GitOrigin-RevId: ea72da47f2ebb377cf22af061ab616a021950502
This commit is contained in:
parent
8a12c34fce
commit
09c5bf72d2
1 changed files with 15 additions and 23 deletions
|
@ -50,25 +50,22 @@ export const shortcuts = () => {
|
||||||
run: indentLess,
|
run: indentLess,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-y',
|
key: 'Mod-y',
|
||||||
mac: 'Mod-y',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: redo,
|
run: redo,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Shift-z',
|
key: 'Mod-Shift-z',
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: redo,
|
run: redo,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Shift-/',
|
key: 'Mod-Shift-/',
|
||||||
mac: 'Mod-Shift-/',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: toggleLineComment,
|
run: toggleLineComment,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-ß',
|
key: 'Mod-ß',
|
||||||
mac: 'Mod-ß',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: toggleLineComment,
|
run: toggleLineComment,
|
||||||
},
|
},
|
||||||
|
@ -88,46 +85,42 @@ export const shortcuts = () => {
|
||||||
run: changeCase(false), // lowercase
|
run: changeCase(false), // lowercase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-d',
|
key: 'Mod-d',
|
||||||
mac: 'Mod-d',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: deleteLine,
|
run: deleteLine,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-j',
|
key: 'Mod-j',
|
||||||
mac: 'Mod-j',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: toggleReviewPanel,
|
run: toggleReviewPanel,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Shift-c',
|
key: 'Mod-Shift-c',
|
||||||
mac: 'Mod-Shift-c',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: addNewCommentFromKbdShortcut,
|
run: addNewCommentFromKbdShortcut,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Shift-a',
|
key: 'Mod-Shift-a',
|
||||||
mac: 'Mod-Shift-a',
|
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: toggleTrackChangesFromKbdShortcut,
|
run: toggleTrackChangesFromKbdShortcut,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Alt-ArrowUp',
|
key: 'Mod-Alt-ArrowUp',
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: cloneSelectionVertically(false, true),
|
run: cloneSelectionVertically(false, true),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Alt-ArrowDown',
|
key: 'Mod-Alt-ArrowDown',
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: cloneSelectionVertically(true, true),
|
run: cloneSelectionVertically(true, true),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Alt-Shift-ArrowUp',
|
key: 'Mod-Alt-Shift-ArrowUp',
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: cloneSelectionVertically(false, false),
|
run: cloneSelectionVertically(false, false),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Alt-Shift-ArrowDown',
|
key: 'Mod-Alt-Shift-ArrowDown',
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
run: cloneSelectionVertically(true, false),
|
run: cloneSelectionVertically(true, false),
|
||||||
},
|
},
|
||||||
|
@ -142,8 +135,7 @@ export const shortcuts = () => {
|
||||||
run: selectOccurrence(true),
|
run: selectOccurrence(true),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'Ctrl-Shift-d',
|
key: 'Mod-Shift-d',
|
||||||
mac: 'Mod-Shift-d',
|
|
||||||
run: duplicateSelection,
|
run: duplicateSelection,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -171,11 +163,11 @@ export const shortcuts = () => {
|
||||||
shift: selectSyntaxRight,
|
shift: selectSyntaxRight,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mac: 'Mod-Backspace',
|
mac: 'Cmd-Backspace',
|
||||||
run: deleteToVisualLineStart,
|
run: deleteToVisualLineStart,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
mac: 'Mod-Delete',
|
mac: 'Cmd-Delete',
|
||||||
run: deleteToVisualLineEnd,
|
run: deleteToVisualLineEnd,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue