mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
Merge pull request #2593 from urbit/mp/soto/empty-backspace
soto: ignore backspace at cursor position 0
This commit is contained in:
commit
a5ed4e15e2
@ -39,6 +39,8 @@ export class Input extends Component {
|
|||||||
else if ((e.key === "Backspace") && (this.props.cursor > 0)) {
|
else if ((e.key === "Backspace") && (this.props.cursor > 0)) {
|
||||||
store.doEdit({ del: this.props.cursor - 1});
|
store.doEdit({ del: this.props.cursor - 1});
|
||||||
return store.setState({ cursor: this.props.cursor - 1});
|
return store.setState({ cursor: this.props.cursor - 1});
|
||||||
|
} else if (e.key === "Backspace") {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (e.key.startsWith("Arrow")) {
|
else if (e.key.startsWith("Arrow")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user