Improve delay in linux config

This commit is contained in:
Federico Terzi 2019-09-01 18:49:08 +02:00
parent 0ba18eba51
commit 952fd89c42
3 changed files with 4 additions and 4 deletions

View File

@ -196,11 +196,11 @@ void event_callback(XPointer p, XRecordInterceptData *hook)
}
void send_string(const char * string) {
xdo_enter_text_window(xdo_context, CURRENTWINDOW, string, 0);
xdo_enter_text_window(xdo_context, CURRENTWINDOW, string, 8000);
}
void delete_string(int32_t count) {
for (int i = 0; i<count; i++) {
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "BackSpace", 0);
xdo_send_keysequence_window(xdo_context, CURRENTWINDOW, "BackSpace", 8000);
}
}

View File

@ -39,4 +39,4 @@ extern "C" void send_string(const wchar_t * string);
*/
extern "C" void delete_string(int32_t count);
#endif //ESPANSO_BRIDGE_H
#endif //ESPANSO_BRIDGE_H

View File

@ -24,7 +24,7 @@ fn main() {
let matches = vec![Match{trigger:"e'".to_owned(), result: "è".to_owned()},
Match{trigger:":lol".to_owned(), result: "😂".to_owned()},
Match{trigger:":lll".to_owned(), result: "yo".to_owned()},
Match{trigger:":lll".to_owned(), result: "hello".to_owned()},
];
let mut matcher = ScrollingMatcher::new(&matches, &engine);