Skip to content

Enable Unix and Linux shortcut keys in the input.#511

Merged
Rigellute merged 1 commit into
Rigellute:masterfrom
ksk001100:feature/enable-unix-shortcut
Jun 29, 2020
Merged

Enable Unix and Linux shortcut keys in the input.#511
Rigellute merged 1 commit into
Rigellute:masterfrom
ksk001100:feature/enable-unix-shortcut

Conversation

@ksk001100
Copy link
Copy Markdown
Contributor

close #510

Copy link
Copy Markdown
Owner

@Rigellute Rigellute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great @ksk001100, thank you 🙏

Comment thread src/handlers/input.rs
handler(Key::Ctrl('b'), &mut app);
assert_eq!(app.input_cursor_position, input_len - 4);
handler(Key::Ctrl('b'), &mut app);
assert_eq!(app.input_cursor_position, input_len - 5);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests 👍

@Rigellute Rigellute merged commit 9ce451d into Rigellute:master Jun 29, 2020
@Rigellute
Copy link
Copy Markdown
Owner

@all-contributors please add @ksk001100 for code

@allcontributors
Copy link
Copy Markdown
Contributor

@Rigellute

I've put up a pull request to add @ksk001100! 🎉

nighi pushed a commit to nighi/spotify-tui that referenced this pull request Jul 11, 2025
…hortcut

Enable Unix and Linux shortcut keys in the input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't use Unix shortcut key in the input

2 participants