@@ -58,8 +58,8 @@ void FlutterWindowsView::SetEngine(
5858 auto internal_plugin_messenger = internal_plugin_registrar_->messenger ();
5959 InitializeKeyboard ();
6060 platform_handler_ = PlatformHandler::Create (internal_plugin_messenger, this );
61- cursor_handler_ = std::make_unique<CursorHandler>(
62- internal_plugin_messenger, binding_handler_.get ());
61+ cursor_handler_ = std::make_unique<CursorHandler>(internal_plugin_messenger,
62+ binding_handler_.get ());
6363
6464 PhysicalWindowBounds bounds = binding_handler_->GetPhysicalWindowBounds ();
6565
@@ -80,7 +80,8 @@ FlutterWindowsView::CreateKeyboardKeyHandler(
8080 // of the event. In order to allow the same real event in the future, the
8181 // handler is "toggled" when events pass through, therefore the redispatching
8282 // algorithm does not allow more than 1 handler that takes |SendInput|.
83- auto keyboard_key_handler = std::make_unique<KeyboardKeyHandler>(dispatch_event);
83+ auto keyboard_key_handler =
84+ std::make_unique<KeyboardKeyHandler>(dispatch_event);
8485 keyboard_key_handler->AddDelegate (
8586 std::make_unique<KeyboardKeyEmbedderHandler>(
8687 [this ](const FlutterKeyEvent& event, FlutterKeyEventCallback callback,
@@ -267,12 +268,10 @@ void FlutterWindowsView::InitializeKeyboard() {
267268 auto internal_plugin_messenger = internal_plugin_registrar_->messenger ();
268269#ifdef WINUWP
269270 KeyboardKeyHandler::EventDispatcher dispatch_event = nullptr ;
270- KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state =
271- nullptr ;
271+ KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state = nullptr ;
272272#else
273273 KeyboardKeyHandler::EventDispatcher dispatch_event = SendInput;
274- KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state =
275- GetKeyState;
274+ KeyboardKeyEmbedderHandler::GetKeyStateHandler get_key_state = GetKeyState;
276275#endif
277276 keyboard_key_handler_ = std::move (CreateKeyboardKeyHandler (
278277 internal_plugin_messenger, dispatch_event, get_key_state));
0 commit comments