Skip to content

Commit 08631fa

Browse files
authored
fix: prevent history show prev/next in composing event (microsoft#184014)
1 parent 610472b commit 08631fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/platform/history/browser/contextScopedHistoryWidget.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
113113
when: ContextKeyExpr.and(
114114
ContextKeyExpr.has(HistoryNavigationWidgetFocusContext),
115115
ContextKeyExpr.equals(HistoryNavigationBackwardsEnablementContext, true),
116+
ContextKeyExpr.not('isComposing'),
116117
historyNavigationVisible.isEqualTo(false),
117118
),
118119
primary: KeyCode.UpArrow,
@@ -128,6 +129,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
128129
when: ContextKeyExpr.and(
129130
ContextKeyExpr.has(HistoryNavigationWidgetFocusContext),
130131
ContextKeyExpr.equals(HistoryNavigationForwardsEnablementContext, true),
132+
ContextKeyExpr.not('isComposing'),
131133
historyNavigationVisible.isEqualTo(false),
132134
),
133135
primary: KeyCode.DownArrow,

0 commit comments

Comments
 (0)