mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Don't finalize composition on modifier key presses
This commit is contained in:
+4
-1
@@ -2627,7 +2627,10 @@
|
||||
Terminal.prototype.keyDown = function(ev) {
|
||||
if (this.compositionHelper.isComposing || this.compositionHelper.isSendingComposition) {
|
||||
if (ev.keyCode === 229) {
|
||||
// Continue composing
|
||||
// Continue composing if the keyCode is the "composition character"
|
||||
return;
|
||||
} else if (ev.keyCode === 16 || ev.keyCode === 17 || ev.keyCode === 18) {
|
||||
// Continue composing if the keyCode is a modifier key
|
||||
return;
|
||||
} else {
|
||||
// Finish composition immediately
|
||||
|
||||
Reference in New Issue
Block a user