Home
last modified time | relevance | path

Searched refs:onKey (Results 1 – 25 of 49) sorted by relevance

12

/third_party/flutter/flutter/packages/flutter/test/widgets/
Draw_keyboard_listener_test.dart22 …await tester.pumpWidget(RawKeyboardListener(focusNode: focusNode, onKey: null, child: Container())…
23 …await tester.pumpWidget(RawKeyboardListener(focusNode: focusNode, onKey: null, child: Container())…
35 onKey: events.add,
73 onKey: events.add,
Dfocus_manager_test.dart442 final FocusAttachment scope1Attachment = scope1.attach(context, onKey: handleEvent);
444 final FocusAttachment scope2Attachment = scope2.attach(context, onKey: handleEvent);
445 final FocusNode parent1 = FocusNode(debugLabel: 'Parent 1', onKey: handleEvent);
447 final FocusNode parent2 = FocusNode(debugLabel: 'Parent 2', onKey: handleEvent);
450 final FocusAttachment child1Attachment = child1.attach(context, onKey: handleEvent);
452 final FocusAttachment child2Attachment = child2.attach(context, onKey: handleEvent);
454 final FocusAttachment child3Attachment = child3.attach(context, onKey: handleEvent);
456 final FocusAttachment child4Attachment = child4.attach(context, onKey: handleEvent);
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Draw_keyboard_listener.dart42 this.onKey,
56 final ValueChanged<RawKeyEvent> onKey;
120 if (widget.onKey != null)
121 widget.onKey(event);
Dfocus_scope.dart16 /// For keyboard events, [onKey] is called if [FocusNode.hasFocus] is true for
17 /// this widget's [focusNode], unless a focused descendant's [onKey] callback
87 /// onKey: _handleKeyPress,
147 this.onKey,
176 /// if its [onKey] method return false, then they are given to each ancestor
185 final FocusOnKeyCallback onKey;
344 _focusAttachment = focusNode.attach(context, onKey: widget.onKey);
440 /// The [onKey] argument allows specification of a key event handler that is
443 /// ancestors of that node, stopping if one of them returns true from [onKey],
491 FocusOnKeyCallback onKey,
[all …]
Dfocus_manager.dart35 /// Signature of a callback used by [Focus.onKey] and [FocusScope.onKey]
208 /// [onKey] callback for that node. If the callback returns false, indicating
210 /// of that node and call its [onKey]. If that [onKey] returns true, then it
267 /// _nodeAttachment = _node.attach(context, onKey: _handleKeyPress);
369 FocusOnKeyCallback onKey,
376 _onKey = onKey {
443 FocusOnKeyCallback get onKey => _onKey;
520 /// its focused descendants returned true from their [onKey] handler.
550 /// receive key events through its [onKey] handler.
740 FocusAttachment attach(BuildContext context, {FocusOnKeyCallback onKey}) {
[all …]
/third_party/flutter/skia/tools/sk_app/
DWindow.cpp47 bool Window::onKey(Key key, InputState state, ModifierKey modifiers) { in onKey() function in sk_app::Window
48 return this->signalLayers([=](Layer* layer) { return layer->onKey(key, state, modifiers); }); in onKey()
DWindow.h140 virtual bool onKey(Key key, InputState state, ModifierKey modifiers) { return false; } in onKey() function
161 bool onKey(Key key, InputState state, ModifierKey modifiers);
DCommandSet.h44 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers);
DCommandSet.cpp38 bool CommandSet::onKey(Window::Key key, InputState state, ModifierKey modifiers) { in onKey() function in sk_app::CommandSet
/third_party/skia/tools/sk_app/
DWindow.cpp47 bool Window::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() function in sk_app::Window
48 return this->signalLayers([=](Layer* layer) { return layer->onKey(key, state, modifiers); }); in onKey()
DWindow.h105 virtual bool onKey(skui::Key, skui::InputState, skui::ModifierKey) { return false; } in onKey() function
129 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers);
DCommandSet.h44 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers);
DCommandSet.cpp37 bool CommandSet::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() function in sk_app::CommandSet
/third_party/skia/experimental/sktext/editor/
DEditor.h44 bool onKey(skui::Key, skui::InputState, skui::ModifierKey) override;
/third_party/flutter/skia/tools/sk_app/ios/
DWindow_ios.cpp219 if (!this->onKey(key, InputState::kDown, get_modifiers(event))) { in handleEvent()
230 (void) this->onKey(key, InputState::kUp, in handleEvent()
/third_party/flutter/skia/tools/sk_app/win/
DWindow_win.cpp254 eventHandled = window->onKey(get_key(wParam), InputState::kDown, in WndProc()
260 eventHandled = window->onKey(get_key(wParam), InputState::kUp, in WndProc()
/third_party/skia/tools/sk_app/android/
Dsurface_glue_android.cpp169 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kDown, skui::ModifierKey::kNone); in message_callback()
170 … skiaAndroidApp->fWindow->onKey(it->second, skui::InputState::kUp, skui::ModifierKey::kNone); in message_callback()
/third_party/flutter/skia/tools/sk_app/android/
Dsurface_glue_android.cpp169 skiaAndroidApp->fWindow->onKey(it->second, InputState::kDown, ModifierKey::kNone); in message_callback()
170 skiaAndroidApp->fWindow->onKey(it->second, InputState::kUp, ModifierKey::kNone); in message_callback()
/third_party/skia/tools/sk_app/win/
DWindow_win.cpp253 eventHandled = window->onKey(get_key(wParam), skui::InputState::kDown, in WndProc()
259 eventHandled = window->onKey(get_key(wParam), skui::InputState::kUp, in WndProc()
/third_party/flutter/skia/tools/sk_app/unix/
DWindow_unix.cpp299 if (!this->onKey(key, InputState::kDown, get_modifiers(event))) { in handleEvent()
317 (void) this->onKey(key, InputState::kUp, in handleEvent()
/third_party/skia/tools/sk_app/mac/
DWindow_mac.mm353 (void) fWindow->onKey(cur.key, state, modifiers);
377 if (!fWindow->onKey(key, skui::InputState::kDown, modifiers)) {
401 (void) fWindow->onKey(key, skui::InputState::kUp, modifiers);
/third_party/flutter/skia/tools/viewer/
DViewer.h43 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) override;
DImGuiLayer.h128 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) override;
/third_party/skia/tools/viewer/
DImGuiLayer.h131 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override;
/third_party/skia/tools/sk_app/unix/
DWindow_unix.cpp300 if (!this->onKey(key, skui::InputState::kDown, get_modifiers(event))) { in handleEvent()
318 (void) this->onKey(key, skui::InputState::kUp, in handleEvent()

12