mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
chore(lv_keyboard): minor optimization and formatting (#4555)
This commit is contained in:
@@ -322,10 +322,10 @@ void lv_keyboard_def_event_cb(lv_event_t * e)
|
||||
|
||||
LV_ASSERT_OBJ(obj, MY_CLASS);
|
||||
lv_keyboard_t * keyboard = (lv_keyboard_t *)obj;
|
||||
uint16_t btn_id = lv_btnmatrix_get_selected_btn(obj);
|
||||
uint16_t btn_id = lv_btnmatrix_get_selected_btn(obj);
|
||||
if(btn_id == LV_BTNMATRIX_BTN_NONE) return;
|
||||
|
||||
const char * txt = lv_btnmatrix_get_btn_text(obj, lv_btnmatrix_get_selected_btn(obj));
|
||||
const char * txt = lv_btnmatrix_get_btn_text(obj, btn_id);
|
||||
if(txt == NULL) return;
|
||||
|
||||
if(strcmp(txt, "abc") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user