forked from firka/flutter
Refactor gen_keycode: Split generators (#61916)
* Split gen_keycode to make maintenance easier.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.8
|
||||
|
||||
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
|
||||
// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and
|
||||
// should not be edited directly.
|
||||
@@ -121,6 +123,7 @@ abstract class KeyboardKey with Diagnosticable {
|
||||
/// to keyboard events.
|
||||
/// * [RawKeyboardListener], a widget used to listen to and supply handlers for
|
||||
/// keyboard events.
|
||||
@immutable
|
||||
class LogicalKeyboardKey extends KeyboardKey {
|
||||
/// Creates a LogicalKeyboardKey object with an optional key label and debug
|
||||
/// name.
|
||||
@@ -402,6 +405,7 @@ class LogicalKeyboardKey extends KeyboardKey {
|
||||
/// to keyboard events.
|
||||
/// * [RawKeyboardListener], a widget used to listen to and supply handlers for
|
||||
/// keyboard events.
|
||||
@immutable
|
||||
class PhysicalKeyboardKey extends KeyboardKey {
|
||||
/// Creates a PhysicalKeyboardKey object with an optional debug name.
|
||||
///
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <map>
|
||||
|
||||
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
|
||||
// This file is generated by flutter/flutter@dev/tools/gen_keycodes/bin/gen_keycodes.dart and
|
||||
// should not be edited directly.
|
||||
//
|
||||
// Edit the template dev/tools/gen_keycodes/data/keyboard_maps_gtk_cxx.tmpl instead.
|
||||
// See dev/tools/gen_keycodes/README.md for more information.
|
||||
|
||||
/// Maps GTK-specific key codes to the matching [LogicalKeyboardKey].
|
||||
const std::map<int, int> g_gtk_to_logical_key = {
|
||||
@@@GTK_KEY_CODE_MAP@@@
|
||||
};
|
||||
|
||||
/// A map of GTK key codes which have printable representations, but appear
|
||||
/// on the number pad. Used to provide different key objects for keys like
|
||||
/// KEY_EQUALS and NUMPAD_EQUALS.
|
||||
const std::map<int, int> g_gtk_numpad_map = {
|
||||
@@@GTK_NUMPAD_MAP@@@
|
||||
};
|
||||
@@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.8
|
||||
|
||||
// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT
|
||||
// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and
|
||||
// should not be edited directly.
|
||||
|
||||
Reference in New Issue
Block a user