Entry: add "selection,reset" state
authorDaniel Hirt <daniel.hirt@samsung.com>
Thu, 3 Dec 2015 08:06:03 +0000 (10:06 +0200)
committerDaniel Hirt <daniel.hirt@samsung.com>
Thu, 3 Dec 2015 08:10:47 +0000 (10:10 +0200)
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.

legacy/elementary/data/themes/edc/elm/entry.edc

index 1a110c3..390a955 100644 (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";
       }
@@ -426,6 +426,11 @@ group { name: "elm/entry/cursor/default";
          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;
          target: "cursor_show";