We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows, backspace is properly detected; however, on Linux backspace is detected as delete
backspace
delete
Minimal reproducible example
import React from 'react'; import {render, useInput, Text} from 'ink'; function Input() { useInput((_, key) => { if (key.backspace) { console.log("backspace") } else if (key.delete) { console.log("delete") } }); return ( <Text>Example</Text> ); } render(<Input />);
The text was updated successfully, but these errors were encountered:
Feel free to look into this and submit a PR.
Sorry, something went wrong.
hello
The same thing happens on Mac.
Successfully merging a pull request may close this issue.
On Windows,
backspace
is properly detected; however, on Linuxbackspace
is detected asdelete
Minimal reproducible example
The text was updated successfully, but these errors were encountered: