Skip to content

Commit

Permalink
fix: excessive backspace on some platform
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonbrad committed May 8, 2023
1 parent df0594c commit 0bb5f2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clafrica/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ pub fn run(config: Config) -> Result<(), io::Error> {
EventType::KeyPress(E_Key::Backspace) => {
if let Some(out) = cursor.undo() {
keyboard.key_down(Key::Escape);
keyboard.key_up(Key::Backspace);

let i = out.chars().count();
(1..i).for_each(|_| keyboard.key_click(Key::Backspace));
Expand Down

0 comments on commit 0bb5f2d

Please sign in to comment.