@@ -100,7 +100,7 @@ abstract class KeyEvent with Diagnosticable {
100
100
/// is a mnemonic ("keyA" is easier to remember than 0x70004), derived from the
101
101
/// key's effect on a QWERTY keyboard. The name does not represent the key's
102
102
/// effect whatsoever (a physical "keyA" can be the Q key on an AZERTY
103
- /// keyboard.)
103
+ /// keyboard).
104
104
///
105
105
/// For instance, if you wanted to make a game where the key to the right of
106
106
/// the CAPS LOCK key made the player move left, you would be comparing a
@@ -241,6 +241,9 @@ class KeyUpEvent extends KeyEvent {
241
241
/// An event indicating that the user has been holding a key on the keyboard
242
242
/// and causing repeated events.
243
243
///
244
+ /// Repeat events are not guaranteed and are provided only if supported by the
245
+ /// underlying platform.
246
+ ///
244
247
/// See also:
245
248
///
246
249
/// * [KeyDownEvent] , a key event representing the user
@@ -258,7 +261,7 @@ class KeyRepeatEvent extends KeyEvent {
258
261
});
259
262
}
260
263
261
- /// The signature for [HardwareKeyboard.addHandler] , a callback to to decide whether
264
+ /// The signature for [HardwareKeyboard.addHandler] , a callback to decide whether
262
265
/// the entire framework handles a key event.
263
266
typedef KeyEventCallback = bool Function (KeyEvent event);
264
267
@@ -737,7 +740,7 @@ class KeyEventManager {
737
740
/// The global entrance which handles all key events sent to Flutter.
738
741
///
739
742
/// Typical applications use [WidgetsBinding] , where this field is
740
- /// set by the focus system (see `FocusManger ` ) on startup to a function that
743
+ /// set by the focus system (see `FocusManager ` ) on startup to a function that
741
744
/// dispatches incoming events to the focus system, including
742
745
/// `FocusNode.onKey` , `FocusNode.onKeyEvent` , and `Shortcuts` . In this case,
743
746
/// the application does not need to read, assign, or invoke this value.
0 commit comments