Entry: add "selection,reset" state

This change will hide the cursor once there is an actual change, and
there is a difference between the selection cursors. If there is no
difference, then it is better to show the cursor again.
This commit is contained in:
Daniel Hirt 2015-12-03 10:06:03 +02:00
parent 70a888cc03
commit 929cb0ad45
1 changed files with 6 additions and 1 deletions

View File

@ -416,7 +416,7 @@ group { name: "elm/entry/cursor/default";
}
programs {
program {
signal: "selection,start"; source: "elm.text";
signal: "selection,changed"; source: "elm.text";
action: STATE_SET "hidden" 0.0;
target: "clipper";
}
@ -425,6 +425,11 @@ group { name: "elm/entry/cursor/default";
action: STATE_SET "default" 0.0;
target: "clipper";
}
program {
signal: "selection,reset"; source: "elm.text";
action: STATE_SET "default" 0.0;
target: "clipper";
}
program {
signal: "elm,action,focus"; source: "elm";
action: ACTION_STOP;