88public class Gala.Daemon.Key : Object {
99 public const string ACTION_GROUP_PREFIX = " keyboard" ;
1010 public const string ACTION_PREFIX = ACTION_GROUP_PREFIX + " ." ;
11- /* Types the keyval given as the action target */
11+ /* Types the keyval given as the action target in a single combination of pressed + released */
1212 public const string ACTION_TYPE_KEY_VAL = " keyval" ;
13- /* Erases the last character */
14- public const string ACTION_ERASE = " erase" ;
13+ /* Sends a keyval pressed event */
14+ public const string ACTION_PRESS_KEY_VAL = " keyval-press" ;
15+ /* Sends a keyval released event */
16+ public const string ACTION_RELEASE_KEY_VAL = " keyval-release" ;
1517 /* Latches the keyboard view with the name given as the action target */
1618 public const string ACTION_LATCH_VIEW = " latch-view" ;
1719 /* Sets the keyboard view with the name given as the action target */
@@ -23,19 +25,28 @@ public class Gala.Daemon.Key : Object {
2325 public double width { get ; construct; default = 1.0 ; }
2426 public double height { get ; construct; default = 1.0 ; }
2527
28+ /**
29+ * Action triggered on release.
30+ */
2631 public string detailed_action_name { get ; construct; }
2732
33+ /**
34+ * Additional optional action triggered on press.
35+ */
36+ public string ? press_detailed_action_name { get ; construct; }
37+
2838 public ListModel popup_keys { get ; construct; }
2939
3040 public string ? label { get ; construct; }
3141 public Icon ? icon { get ; construct; }
3242
33- public Key (double left_offset , double width , double height , string detailed_action_name , ListModel popup_keys , string ? label , Icon ? icon ) {
43+ public Key (double left_offset , double width , double height , string detailed_action_name , string ? press_detailed_action_name , ListModel popup_keys , string ? label , Icon ? icon ) {
3444 Object (
3545 left_offset: left_offset,
3646 width: width,
3747 height: height,
3848 detailed_action_name: detailed_action_name,
49+ press_detailed_action_name: press_detailed_action_name,
3950 popup_keys: popup_keys,
4051 label: label,
4152 icon: icon
0 commit comments