Skip to content
New issue

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

Input editor: Home and End don't work #335

Closed
YaLTeR opened this issue May 7, 2020 · 3 comments
Closed

Input editor: Home and End don't work #335

YaLTeR opened this issue May 7, 2020 · 3 comments

Comments

@YaLTeR
Copy link
Contributor

YaLTeR commented May 7, 2020

Should scroll to the very top and bottom respectively.

@clementgallet
Copy link
Owner

Default behavior for home/end keys is weird (I had to look into the source, it is not explained in the doc afaik): those keys move the cursor to the first/last column, but doesn't change the row. To move to the first/last cell, you have to hit Ctrl+Home/End... but it doesn't update the selected row.

So I intercepted the key event for those key strokes, and implemented the expected behavior (485aa7e)

@YaLTeR
Copy link
Contributor Author

YaLTeR commented May 10, 2020

Oh, thanks, I actually wanted to use Shift+End to select from the currently selected row to the end to then delete the input and paste new input, but that doesn't seem to work even after this patch.

@clementgallet
Copy link
Owner

Oh ok. Indeed it doesn't work because I only implemented the behavior of Home/End with no modifier. I could implement Shift+Home/End as well.

You could do the same think by using "Truncate" option in right-click menu

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

No branches or pull requests

2 participants