add KEY_CANCEL

This commit is contained in:
lixianjing 2019-11-21 08:54:04 +08:00
parent 30031fdd10
commit 6d021f4624
2 changed files with 7 additions and 2 deletions

View File

@ -199,6 +199,7 @@ static const key_type_value_t keys_type_name_value[] = {
{"LEFTBRACE", 0, TK_KEY_LEFTBRACE},
{"RIGHTBRACE", 0, TK_KEY_RIGHTBRACE},
{"BACK", 0, TK_KEY_BACK},
{"CANCEL", 0, TK_KEY_CANCEL},
#ifdef SDL2
{"PRINTSCREEN", 0, TK_KEY_PRINTSCREEN},
{"SCROLLLOCK", 0, TK_KEY_SCROLLLOCK},
@ -234,7 +235,6 @@ static const key_type_value_t keys_type_name_value[] = {
{"VOLUMEDOWN", 0, TK_KEY_VOLUMEDOWN},
{"ALTERASE", 0, TK_KEY_ALTERASE},
{"SYSREQ", 0, TK_KEY_SYSREQ},
{"CANCEL", 0, TK_KEY_CANCEL},
{"CLEAR", 0, TK_KEY_CLEAR},
{"PRIOR", 0, TK_KEY_PRIOR},
{"RETURN2", 0, TK_KEY_RETURN2},

View File

@ -1,4 +1,4 @@
/**
/**
* File: keys.h
* Author: AWTK Develop Team
* Brief: key code constants
@ -869,6 +869,11 @@ typedef enum _key_code_t {
* TK_KEY_BACK
*/
TK_KEY_BACK = 0x20 + 165,
/**
* @const TK_KEY_CANCEL
* TK_KEY_CANCEL
*/
TK_KEY_CANCEL = 0x20 + 167,
#endif
} key_code_t;