Quellcode durchsuchen

Introduce delay to xdotool

A lot of times rofimoji couldn't type the emoji, but copy-pasting did
work. After some manual trial-and-error (😑) it seems that the problem
was the immediacy of xdotool. If we set the delay to imperceptible
100ms, it works - even in Firefox! 🦄
tags/2.0.0
Fabian Winter vor 1 Jahr
Ursprung
Commit
45fa065b3c
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2
    0
      rofimoji.py

+ 2
- 0
rofimoji.py Datei anzeigen

@@ -1,5 +1,6 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import time

from subprocess import Popen, PIPE

@@ -1719,6 +1720,7 @@ else:
emoji = emoji + select_skin_tone(emoji)

if rofi.returncode == 0:
time.sleep(0.1)
Popen(
args=[
'xdotool',

Laden…
Abbrechen
Speichern