From 2b84fdf8cb30445df36585695d561cc3fe0f88ca Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 27 May 2022 12:48:10 -0700 Subject: [PATCH] [macOS] Document onKeyboardLayoutChanged (flutter/engine#33663) Replaces a TODO with documentation. No tests changed, since this change simply adds a missing doc comment. --- .../darwin/macos/framework/Source/FlutterViewController.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController.mm index 74e09a89041..f01e3cfd26a 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FlutterViewController.mm @@ -220,7 +220,12 @@ NSData* currentKeyboardLayoutData() { */ - (void)dispatchMouseEvent:(nonnull NSEvent*)event phase:(FlutterPointerPhase)phase; -// TODO +/** + * Called when the active keyboard input source changes. + * + * Input sources may be simple keyboard layouts, or more complex input methods involving an IME, + * such as Chinese, Japanese, and Korean. + */ - (void)onKeyboardLayoutChanged; @end