mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Skip un-accented character when undoing after using press-and-hold menu
This commit is contained in:
parent
00933c7c63
commit
ec9115e749
@ -654,6 +654,12 @@ class TextEditorComponent {
|
||||
this.compositionCheckpoint = null
|
||||
}
|
||||
|
||||
// Undo insertion of the original non-accented character so it is discarded
|
||||
// from the history and does not reappear on undo
|
||||
if (this.accentedCharacterMenuIsOpen) {
|
||||
this.getModel().undo()
|
||||
}
|
||||
|
||||
this.getModel().insertText(event.data, {groupUndo: true})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user