[windows] Adds support for keyboard mapping. (#54227)
This commit is contained in:
committed by
GitHub
parent
45bf838014
commit
a0f7f6ca6d
@@ -18,8 +18,8 @@ import 'package:gen_keycodes/utils.dart';
|
||||
/// Get contents of the file that contains the key code mapping in Chromium
|
||||
/// source.
|
||||
Future<String> getChromiumConversions() async {
|
||||
final Uri keyCodeMapUri = Uri.parse('https://cs.chromium.org/codesearch/f/chromium/src/ui/events/keycodes/dom/dom_code_data.inc');
|
||||
return await http.read(keyCodeMapUri);
|
||||
final Uri keyCodesUri = Uri.parse('https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/master/ui/events/keycodes/dom/dom_code_data.inc?format=TEXT');
|
||||
return utf8.decode(base64.decode(await http.read(keyCodesUri)));
|
||||
}
|
||||
|
||||
/// Get contents of the file that contains the key codes in Android source.
|
||||
|
||||
Reference in New Issue
Block a user