Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
07bc2452
Unverified
Commit
07bc2452
authored
Jan 10, 2023
by
Bruno Leroux
Committed by
GitHub
Jan 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a comment about repeat event + fix typos (#118095)
parent
700fe3d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
hardware_keyboard.dart
packages/flutter/lib/src/services/hardware_keyboard.dart
+6
-3
No files found.
packages/flutter/lib/src/services/hardware_keyboard.dart
View file @
07bc2452
...
...
@@ -100,7 +100,7 @@ abstract class KeyEvent with Diagnosticable {
/// is a mnemonic ("keyA" is easier to remember than 0x70004), derived from the
/// key's effect on a QWERTY keyboard. The name does not represent the key's
/// effect whatsoever (a physical "keyA" can be the Q key on an AZERTY
/// keyboard
.)
/// keyboard
).
///
/// For instance, if you wanted to make a game where the key to the right of
/// the CAPS LOCK key made the player move left, you would be comparing a
...
...
@@ -241,6 +241,9 @@ class KeyUpEvent extends KeyEvent {
/// An event indicating that the user has been holding a key on the keyboard
/// and causing repeated events.
///
/// Repeat events are not guaranteed and are provided only if supported by the
/// underlying platform.
///
/// See also:
///
/// * [KeyDownEvent], a key event representing the user
...
...
@@ -258,7 +261,7 @@ class KeyRepeatEvent extends KeyEvent {
});
}
/// The signature for [HardwareKeyboard.addHandler], a callback to
to
decide whether
/// The signature for [HardwareKeyboard.addHandler], a callback to decide whether
/// the entire framework handles a key event.
typedef
KeyEventCallback
=
bool
Function
(
KeyEvent
event
);
...
...
@@ -737,7 +740,7 @@ class KeyEventManager {
/// The global entrance which handles all key events sent to Flutter.
///
/// Typical applications use [WidgetsBinding], where this field is
/// set by the focus system (see `FocusManger`) on startup to a function that
/// set by the focus system (see `FocusMan
a
ger`) on startup to a function that
/// dispatches incoming events to the focus system, including
/// `FocusNode.onKey`, `FocusNode.onKeyEvent`, and `Shortcuts`. In this case,
/// the application does not need to read, assign, or invoke this value.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment