From 73c6ac5d81e607a88c1bad2fd20b4085571c77cd Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Tue, 31 May 2011 13:29:07 -0700 Subject: Implement Caribou_Repeat --- libcaribou/keyboard-model.vala | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libcaribou/keyboard-model.vala') diff --git a/libcaribou/keyboard-model.vala b/libcaribou/keyboard-model.vala index 9fca05d..e34a3a3 100644 --- a/libcaribou/keyboard-model.vala +++ b/libcaribou/keyboard-model.vala @@ -5,8 +5,9 @@ namespace Caribou { public string active_group { get; private set; default = ""; } public string keyboard_type { get; construct; } - XAdapter xadapter; - Gee.HashMap groups; + private XAdapter xadapter; + private Gee.HashMap groups; + private KeyModel last_activated_key; construct { uint grpid; @@ -40,6 +41,11 @@ namespace Caribou { } private void on_key_activated (KeyModel key) { + if (key.name == "Caribou_Repeat") + last_activated_key.activate (); + else + last_activated_key = key; + key_activated (key); } -- cgit v1.2.1