Skip to content

Commit

Permalink
composition enter should not accept rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Mar 2, 2023
1 parent 9abc735 commit 3c07818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/contrib/rename/browser/rename.ts
Expand Up @@ -330,7 +330,7 @@ registerEditorCommand(new RenameCommand({
handler: x => x.acceptRenameInput(false),
kbOpts: {
weight: KeybindingWeight.EditorContrib + 99,
kbExpr: EditorContextKeys.focus,
kbExpr: ContextKeyExpr.and(EditorContextKeys.focus, ContextKeyExpr.not('isComposing')),
primary: KeyCode.Enter
}
}));
Expand All @@ -341,7 +341,7 @@ registerEditorCommand(new RenameCommand({
handler: x => x.acceptRenameInput(true),
kbOpts: {
weight: KeybindingWeight.EditorContrib + 99,
kbExpr: EditorContextKeys.focus,
kbExpr: ContextKeyExpr.and(EditorContextKeys.focus, ContextKeyExpr.not('isComposing')),
primary: KeyMod.Shift + KeyCode.Enter
}
}));
Expand Down

0 comments on commit 3c07818

Please sign in to comment.