Skip to content

Commit 39fcc97

Browse files
committed
fix: skip key bindings when composing
1 parent d3b3aa4 commit 39fcc97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderer/compositions/terminal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ export async function createTerminalTab(context: Partial<TerminalContext> = {},
337337
character,
338338
})
339339
xterm.attachCustomKeyEventHandler(event => {
340+
if (event.isComposing) return true
340341
// Support shortcuts on Windows
341342
if (process.platform === 'win32' && event.ctrlKey) {
342343
if (event.key === 'c' && xterm.hasSelection()) return false

0 commit comments

Comments
 (0)