There are now keyboards that have 19 function keys. This patch extends QEMU so these function keys can be used.
Signed-off-by: John Arbuckle <programmingk...@gmail.com> --- qapi-schema.json | 6 +++++- ui/input-keymap.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 9c6c3e1..a051820 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4842,6 +4842,10 @@ # @hiragana: since 2.9 # @henkan: since 2.9 # @yen: since 2.9 +# @f16: since 2.10 +# @f17: since 2.10 +# @f18: since 2.10 +# @f19: since 2.10 # # Since: 1.3.0 # @@ -4864,7 +4868,7 @@ 'props', 'undo', 'front', 'copy', 'open', 'paste', 'find', 'cut', 'lf', 'help', 'meta_l', 'meta_r', 'compose', 'pause', 'ro', 'hiragana', 'henkan', 'yen', - 'kp_comma', 'kp_equals', 'power' ] } + 'kp_comma', 'kp_equals', 'power', 'f16', 'f17', 'f18', 'f19'] } ## # @KeyValue: diff --git a/ui/input-keymap.c b/ui/input-keymap.c index 8a1476f..d1169e3 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -114,6 +114,10 @@ static const int qcode_to_number[] = { [Q_KEY_CODE_F11] = 0x57, [Q_KEY_CODE_F12] = 0x58, + [Q_KEY_CODE_F16] = 0x59, + [Q_KEY_CODE_F17] = 0x5a, + [Q_KEY_CODE_F18] = 0x5b, + [Q_KEY_CODE_F19] = 0x5c, [Q_KEY_CODE_PRINT] = 0xb7, -- 2.7.2