atx / wtype

xdotool type for wayland
MIT License
347 stars 13 forks source link

Pressing the enter key #49

Closed UltraBlackLinux closed 9 months ago

UltraBlackLinux commented 10 months ago

Hey there, I've been wondering how you are supposed to use the enter key. It seemingly has no key name, and I can't press keycodes it seems.

How do you do this? Thanks!

NI57721 commented 9 months ago

Try return

$ wtype "echo -e \"foo" -P return "bar\"" -P return
$ echo -e "foo
bar"
foo
bar
UltraBlackLinux commented 9 months ago

oooh thank you so much, that works perfectly!

I feel like Return is quite a dated name for the Enter key but whatever