-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Ctrl-Key events in EditView & some general, small improvements (…
…#739) * EditView: Handle ctrl-key events ^U, ^K, ^A, ^E, ^B and ^F These are respectively kill-to-front, kill-to-end, home, end, left and right. Signed-off-by: Christoph Heiss <[email protected]> * EditView: Add method for retrieving current cursor position This is useful in a variety of use cases, e.g. simply checking whether it is legal to .remove() some characters or not. Signed-off-by: Christoph Heiss <[email protected]> * EditView: Do not panic on remove when trying to remove more than available We can simply clamp it to current content length. Signed-off-by: Christoph Heiss <[email protected]> * EditView: Add test for ctrl-key events Signed-off-by: Christoph Heiss <[email protected]> --------- Signed-off-by: Christoph Heiss <[email protected]>
- Loading branch information
1 parent
ea88010
commit 75bc082
Showing
1 changed file
with
55 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters