Add Enter and Tab back in to ios and macos key maps (#81865)

I noticed that tab traversal stopped working on iOS when #73440 was landed.

It seems to be that the control characters were excluded from the list of logical keys, and so they ended up being generated values.

This PR just adds "Enter" and "Tab" to the list for both macOS and iOS.
This commit is contained in:
Greg Spencer
2021-05-11 10:23:11 -07:00
committed by GitHub
parent df3662b15e
commit af3337b676
7 changed files with 63 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
{
"Backspace": ["Backspace"],
"Tab": ["Tab"],
"Enter": ["Enter"],
"Escape": ["Escape"],
"CapsLock": ["CapsLock"],
"NumLock": ["NumLock"],

View File

@@ -1383,6 +1383,12 @@
"web": [
"Tab"
],
"macOs": [
"Tab"
],
"ios": [
"Tab"
],
"gtk": [
"Tab",
"KP_Tab",
@@ -1396,6 +1402,12 @@
]
},
"values": {
"macOs": [
48
],
"ios": [
43
],
"gtk": [
65289,
65417,
@@ -1420,6 +1432,12 @@
"web": [
"Enter"
],
"macOs": [
"Enter"
],
"ios": [
"Enter"
],
"gtk": [
"Return",
"ISO_Enter",
@@ -1433,6 +1451,12 @@
]
},
"values": {
"macOs": [
36
],
"ios": [
40
],
"gtk": [
65293,
65076,

View File

@@ -1,6 +1,8 @@
{
"Backspace": ["Backspace"],
"Tab": ["Tab"],
"Enter": ["Enter"],
"Escape": ["Escape"],
"CapsLock": ["CapsLock"],
"Fn": ["Fn"],

View File

@@ -193,7 +193,7 @@ class LogicalKeyData {
// Make sure every Numpad key that we care about has been defined.
unusedNumpad.forEach((String key, String value) {
print('Unuadded numpad key $value');
print('Undefined numpad key $value');
});
}