Skip to content

Commit

Permalink
Fix wtype problem with delay=0
Browse files Browse the repository at this point in the history
Issue: #95
  • Loading branch information
fdw committed May 2, 2024
1 parent 270437e commit bd3a435
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/rofi_rbw/typer/wtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ def get_active_window(self) -> str:
return "not possible with wtype"

def type_characters(self, characters: str, key_delay: int, active_window: str) -> None:
run(["wtype", "-d", str(key_delay), characters])
args = ['wtype']

if key_delay > 0:
args = args + ['-d', str(key_delay)]

args.append(characters)
run(args)

def press_key(self, key: Key) -> None:
if key == Key.ENTER:
Expand Down

0 comments on commit bd3a435

Please sign in to comment.