1k commits 🥳 (Fixed delete key not working in input)
This commit is contained in:
@@ -48,7 +48,7 @@ impl Element for Input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Delete => {
|
KeyCode::Delete => {
|
||||||
if self.cursor > 0 && self.state.get().len() > self.cursor {
|
if self.state.get().len() > self.cursor {
|
||||||
self.state.get().remove(self.cursor);
|
self.state.get().remove(self.cursor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user