Skip to content

Commit

Permalink
Re-order Cut/Copy/Paste in the Cell context menu (#207963)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Mar 18, 2024
1 parent b216b43 commit 9f25e63
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ registerAction2(class extends NotebookCellAction {
id: MenuId.NotebookCellTitle,
when: NOTEBOOK_EDITOR_FOCUSED,
group: CellOverflowToolbarGroups.Copy,
order: 2,
},
keybinding: platform.isNative ? undefined : {
primary: KeyMod.CtrlCmd | KeyCode.KeyC,
Expand All @@ -463,6 +464,7 @@ registerAction2(class extends NotebookCellAction {
id: MenuId.NotebookCellTitle,
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE),
group: CellOverflowToolbarGroups.Copy,
order: 1,
},
keybinding: platform.isNative ? undefined : {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
Expand All @@ -488,6 +490,7 @@ registerAction2(class extends NotebookAction {
id: MenuId.NotebookCellTitle,
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE),
group: CellOverflowToolbarGroups.Copy,
order: 3,
},
keybinding: platform.isNative ? undefined : {
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
Expand Down

0 comments on commit 9f25e63

Please sign in to comment.