-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#31879Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-macBuilding on or for macOS specificallyBuilding on or for macOS specifically
Description
Steps to Reproduce
- Construct an app with a
NSWindowcontaining aFlutterViewControllerwhich hasreleasedWhenClosedset toYESand another contains nativeNSTextView. - Close the flutter window.
- Switch back to the native window, typing with an IME(e.g Chinese input method)
Recording.2022-03-08.AM12.03.03.mov
Expected results:
Characters typed into the native textView.
Actual results:
Unable to type. IME window resides on the lower left corner of the screen.
Code sample
import AppKit
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
self.isReleasedWhenClosed = true
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-macBuilding on or for macOS specificallyBuilding on or for macOS specifically