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
7ffb80b9
Unverified
Commit
7ffb80b9
authored
Mar 17, 2021
by
Michael Goderbauer
Committed by
GitHub
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in keyboard code (#78464)
parent
e6f2bc86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
raw_keyboard.dart
packages/flutter/lib/src/services/raw_keyboard.dart
+3
-3
No files found.
packages/flutter/lib/src/services/raw_keyboard.dart
View file @
7ffb80b9
...
@@ -228,11 +228,11 @@ abstract class RawKeyEventData {
...
@@ -228,11 +228,11 @@ abstract class RawKeyEventData {
String
get
keyLabel
;
String
get
keyLabel
;
/// Whether a key down event, and likewise its accompanying key up event,
/// Whether a key down event, and likewise its accompanying key up event,
/// should be dis
a
patched.
/// should be dispatched.
///
///
/// Certain events on some platforms should not be dispatched to listeners
/// Certain events on some platforms should not be dispatched to listeners
/// according to Flutter's event model. For example, on macOS, Fn keys are
/// according to Flutter's event model. For example, on macOS, Fn keys are
/// skipped to be consist
a
nt with other platform. On Win32, events dispatched
/// skipped to be consist
e
nt with other platform. On Win32, events dispatched
/// for IME (`VK_PROCESSKEY`) are also skipped.
/// for IME (`VK_PROCESSKEY`) are also skipped.
///
///
/// This method will be called upon every down events. By default, this method
/// This method will be called upon every down events. By default, this method
...
@@ -284,7 +284,6 @@ abstract class RawKeyEvent with Diagnosticable {
...
@@ -284,7 +284,6 @@ abstract class RawKeyEvent with Diagnosticable {
final
RawKeyEventData
data
;
final
RawKeyEventData
data
;
String
?
character
;
String
?
character
;
final
String
keymap
=
message
[
'keymap'
]
as
String
;
if
(
kIsWeb
)
{
if
(
kIsWeb
)
{
final
String
?
key
=
message
[
'key'
]
as
String
?;
final
String
?
key
=
message
[
'key'
]
as
String
?;
data
=
RawKeyEventDataWeb
(
data
=
RawKeyEventDataWeb
(
...
@@ -296,6 +295,7 @@ abstract class RawKeyEvent with Diagnosticable {
...
@@ -296,6 +295,7 @@ abstract class RawKeyEvent with Diagnosticable {
character
=
key
;
character
=
key
;
}
}
}
else
{
}
else
{
final
String
keymap
=
message
[
'keymap'
]
as
String
;
switch
(
keymap
)
{
switch
(
keymap
)
{
case
'android'
:
case
'android'
:
data
=
RawKeyEventDataAndroid
(
data
=
RawKeyEventDataAndroid
(
...
...
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