obv-mikhail / InputBot

Rust library for creating global hotkeys, and simulating inputs
MIT License
421 stars 74 forks source link

KeySequence send doesn't work properly, It didn't print the whole world #79

Open bmariuszb opened 1 year ago

bmariuszb commented 1 year ago

Here is the code example

use inputbot::KeySequence;

fn main() {
    KeySequence("Hello, world!").send()
}

Command: sleep 2 && cargo run Switch to other terminal Output in the second terminal: lo, world! This is on linux Hyprland.

Redhawk18 commented 1 year ago

I've also experienced this behavior on the steamdeck. I believe it's because of system level reasons, but i have no proof.

bmariuszb commented 1 year ago

I also tested it on Xorg AwesomeWm and the results are similar, so it's not related to Wayland only.

bmariuszb commented 1 year ago

Also I should mention that it's not like it cuts exactly the same number of characters, sometimes it's one more or one less