BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
505c44a4
Commit
505c44a4
authored
Mar 02, 2018
by
jian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix keyboard cursor management invalid
parent
7da60e21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
lv_kb.c
lv_objx/lv_kb.c
+9
-4
No files found.
lv_objx/lv_kb.c
View file @
505c44a4
/**
* @file lv_kb.c
*
*
*/
/*********************
...
...
@@ -80,7 +80,7 @@ lv_obj_t * lv_kb_create(lv_obj_t * par, lv_obj_t * copy)
lv_obj_t
*
new_kb
=
lv_btnm_create
(
par
,
copy
);
lv_mem_assert
(
new_kb
);
if
(
ancestor_signal
==
NULL
)
ancestor_signal
=
lv_obj_get_signal_func
(
new_kb
);
/*Allocate the keyboard type specific extended data*/
lv_kb_ext_t
*
ext
=
lv_obj_allocate_ext_attr
(
new_kb
,
sizeof
(
lv_kb_ext_t
));
lv_mem_assert
(
ext
);
...
...
@@ -128,7 +128,7 @@ lv_obj_t * lv_kb_create(lv_obj_t * par, lv_obj_t * copy)
/*Refresh the style with new signal function*/
lv_obj_refresh_style
(
new_kb
);
}
return
new_kb
;
}
...
...
@@ -186,7 +186,12 @@ void lv_kb_set_cursor_manage(lv_obj_t * kb, bool en)
if
(
ext
->
ta
)
{
lv_cursor_type_t
cur_type
;
cur_type
=
lv_ta_get_cursor_type
(
ext
->
ta
);
lv_ta_set_cursor_type
(
ext
->
ta
,
cur_type
&
(
~
LV_CURSOR_HIDDEN
));
if
(
ext
->
cursor_mng
){
lv_ta_set_cursor_type
(
ext
->
ta
,
cur_type
&
(
~
LV_CURSOR_HIDDEN
));
}
else
{
lv_ta_set_cursor_type
(
ext
->
ta
,
cur_type
|
LV_CURSOR_HIDDEN
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment