From 0d76cc4ef3b707bcad82827a26502fcf042f60ef Mon Sep 17 00:00:00 2001 From: MiSimon Date: Sat, 2 Feb 2019 22:45:02 +0100 Subject: [PATCH] Changed POS1 to HOME --- lv_core/lv_group.h | 2 +- lv_objx/lv_ta.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lv_core/lv_group.h b/lv_core/lv_group.h index 7aac83d60..133d5954e 100644 --- a/lv_core/lv_group.h +++ b/lv_core/lv_group.h @@ -36,7 +36,7 @@ extern "C" { #define LV_GROUP_KEY_ENTER 10 /*0x0A, '\n'*/ #define LV_GROUP_KEY_NEXT 9 /*0x09, '\t'*/ #define LV_GROUP_KEY_PREV 11 /*0x0B, '*/ -#define LV_GROUP_KEY_POS1 2 /*0x02, STX*/ +#define LV_GROUP_KEY_HOME 2 /*0x02, STX*/ #define LV_GROUP_KEY_END 3 /*0x03, ETX*/ #if USE_LV_GROUP != 0 diff --git a/lv_objx/lv_ta.c b/lv_objx/lv_ta.c index f6d3a4614..951f32049 100644 --- a/lv_objx/lv_ta.c +++ b/lv_objx/lv_ta.c @@ -1063,7 +1063,7 @@ static lv_res_t lv_ta_signal(lv_obj_t * ta, lv_signal_t sign, void * param) else if(c == LV_GROUP_KEY_DOWN) lv_ta_cursor_down(ta); else if(c == LV_GROUP_KEY_BACKSPACE) lv_ta_del_char(ta); else if(c == LV_GROUP_KEY_DEL) lv_ta_del_char_forward(ta); - else if(c == LV_GROUP_KEY_POS1) lv_ta_set_cursor_pos(ta, 0); + else if(c == LV_GROUP_KEY_HOME) lv_ta_set_cursor_pos(ta, 0); else if(c == LV_GROUP_KEY_END) lv_ta_set_cursor_pos(ta, LV_TA_CURSOR_LAST); else { lv_ta_add_char(ta, c);