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

Keyboard grid cell navigation #39

Open
ComFreek opened this issue Mar 12, 2019 · 2 comments
Open

Keyboard grid cell navigation #39

ComFreek opened this issue Mar 12, 2019 · 2 comments

Comments

@ComFreek
Copy link

When within one node, I'd suggest that pressing one of the arrow keys navigates the user to the desired node.

Maybe Ctrl-arrow key also adds an edge.

@yishn
Copy link
Owner

yishn commented Mar 12, 2019

I'm not sure how you envision the keyboard shortcuts. When you're within one node, you're inside a text box, editing the LaTeX code for that node. Pressing arrow keys should move the caret of that text box.

@ComFreek
Copy link
Author

ComFreek commented Mar 13, 2019

You're right, arrow keys on their own would break normal editing.

  • arrow keys alone
  • Ctrl-arrow key is commonly used for "fast forward to next word" in edit controls, isn't it?
  • Alt-(left|right) is used in browsers for navigating back and forth.
  • Tab would inherently only support going to the right.

Personally, having such a feature would certainly be useful, so one might consider overwriting one of the keyboard shortcuts above.
Or what about mirroring Excel a bit and having two modes: edit mode within one node and normal mode. In normal mode a single node is always selected. The selection can be moved with the arrow keys. Hence, the workflow for entering "A B" would be:

  • [Website loads in "normal mode", the center node is selected]
  • Press A, then Enter
  • Press right arrow key
  • PressB, then Enter.

Maybe pressing Shift-arrow key in normal mode moves the selection while also adding an arrow.

@yishn yishn changed the title Add keyboard shortcuts Keyboard grid cell navigation Mar 13, 2019
yishn added a commit that referenced this issue Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants