mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Merge pull request #15285 from atom/ns-ime-workaround-2
Fix IME composition preview for new editors
This commit is contained in:
@@ -1670,7 +1670,7 @@ class TextEditorComponent {
|
||||
|
||||
if (this.getChromeVersion() === 56) {
|
||||
process.nextTick(() => {
|
||||
if (this.compositionCheckpoint) {
|
||||
if (this.compositionCheckpoint != null) {
|
||||
const previewText = this.getHiddenInput().value
|
||||
this.props.model.insertText(previewText, {select: true})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user