mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-17 06:01:21 +01:00
Fix duplicated character when composing text (#234)
This commit is contained in:
1 parent
333b64e7f3
commit
2b07d1a493
1 file changed
+3
@@ -6,6 +6,9 @@ export function singleLineExtensions(): Extension {
|
||||
(tr: Transaction): TransactionSpec | TransactionSpec[] => {
|
||||
if (!tr.isUserEvent('input')) return tr;
|
||||
|
||||
// when composing text via IME, return
|
||||
if (tr.isUserEvent('input.type.compose')) return tr;
|
||||
|
||||
const specs: TransactionSpec[] = [];
|
||||
tr.changes.iterChanges((_, toA, fromB, toB, inserted) => {
|
||||
let insert = '';
|
||||
|
||||
Reference in new issue
Block a user