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

Home and End keys while editing do not move the cursor but rather the view #19

Closed
ghost opened this issue Jun 11, 2014 · 4 comments
Closed

Comments

@ghost
Copy link

ghost commented Jun 11, 2014

Hi.

Moving the editing cursor in a cell is a little tricky. I was expecting Home and End keys to have the same behaviour and Ctrl+Home and Ctrl+End do. But Home and End keys affect the view instead.
I tried to work around this by pressing Shift+Home or Shift+End which doesn't move the view but does select the text, at which point if I accidentally type a character the text is gone(replaced by that character) and there is no Undo/Redo for the lost text (but this is another issue #18 ). However, if I press Left arrow(for after Shift+Home) or Right arrow(for after Shift+End) it works: deselects the text and the cursor is where it should be.

And looks like there is a difference between Edit->Text Editing->Start of line of text(Home) which works correctly, and actually pressing Home key(view runs at top of page).

Edit->Text Editing->Start of line of text(Home)
and
Edit->Text Editing->Start of text(Ctrl+Home)
work exactly the same when selecting them from the menu, or using Ctrl+Home. But not when using just Home key.

Same for End and Ctrl+End.

However, it works correctly in one instance: when I'm zoomed in(Ctrl+MouseWheel in) to 25) part of the tutorial (in Advanced operations) such that Advanced operations is the immediate but unseen(in view) parent and editing the cell containing "header" - this works.
But zooming one more step out then Home and End keys affect the view instead of the editing cursor.

Thanks.

PS: using AUR version: treesheets-git (Jun 11)
EDIT: local/treesheets-git r70.7fd3390-1

@aardappel
Copy link
Owner

What platform are you on? Any special tools you have installed? Because for me (on Windows), home does beginning/end of line just fine.

@ghost
Copy link
Author

ghost commented Jun 14, 2014

I'm on linux manjaro (based on arch linux) with xfce4, more specifically, I installed it from this iso:
sha1:07818595f17db2dd444c89c2a140b2fadab8b95a manjaro-xfce-minimal-0.8.10-rc2-x86_64.iso
but it is currently up to date.
EDIT3: to my knowledge there are no special tools installed.

Do you think that some system settings might be affecting it? I'm thinking maybe some system-wise key-mappings (currently I don't know much about where to look them up and change them) such as pressing Shift+numkey7 when numlock is off, yielding "7" instead of doing Shift+Home like it does when numlock is on. (there doesn't seem to be a gui option to fix this as it was in linux mint 15 olivia mate, like half a year ago)

EDIT: I should mention that just doing numkey7 while numlock is off, does do Home key (and I also have a specific Home key on this laptop which was the one I was using in original post), but when numlock is on numkey7 does "7"

EDIT2: I'm thinking that since it reacts differently in two different situations in treesheets(works correctly in one instance), maybe it's not my system-wide key-mappings (which I haven't messed with btw)
:)

@aardappel
Copy link
Owner

Ok, think I fixed it, see my last commit.

@ghost
Copy link
Author

ghost commented Jun 14, 2014

Sweet, thanks! Confirmed to work.

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

1 participant