refactor(src/window/spotlight/plugins): increase timeout interval to 50ms for clipboard and emoji paste actions
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -205,7 +205,7 @@ class ClipboardPlugin(SpotlightPlugin):
|
|||||||
if not decoded:
|
if not decoded:
|
||||||
return
|
return
|
||||||
copy_text(decoded.decode())
|
copy_text(decoded.decode())
|
||||||
GLib.timeout_add(5, lambda: (trigger_paste_shortcut(), False)[1])
|
GLib.timeout_add(50, lambda: (trigger_paste_shortcut(0), False)[1])
|
||||||
|
|
||||||
return _action
|
return _action
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class EmojiPlugin(SpotlightPlugin):
|
|||||||
|
|
||||||
def _copy_to_clipboard(self, emoji_char: str) -> None:
|
def _copy_to_clipboard(self, emoji_char: str) -> None:
|
||||||
copy_text(emoji_char)
|
copy_text(emoji_char)
|
||||||
GLib.timeout_add(5, lambda: (trigger_paste_shortcut(), False)[1])
|
GLib.timeout_add(50, lambda: (trigger_paste_shortcut(0), False)[1])
|
||||||
|
|
||||||
def handle_external(self, command: str, args: str) -> None:
|
def handle_external(self, command: str, args: str) -> None:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in new issue
Block a user