Closed ianrenton closed 10 years ago
Added up/down/pageup/pagedown scrolling while the main input box has focus.
+1 from @marxjohnson on wanting keyboard shortcuts for column left/right. How the heck can we do this while leaving left/right arrow functionality passed to the status input text box. Does Javascript support detecting Ctrl+L/R? Would we want this to be the shortcut anyway - isn't that browser back/forward on Linux?
Detecting Ctrl with JS: http://www.javascriptkit.com/javatutors/javascriptkey2.shtml
Alt+Left/Alt+Right are back/forward shortcuts in Firefox: http://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Aparrently Ctrl+left/Crtl+Right moves tabs, which kinda makes sense for this (preventDefault() might stop the key combo's default behaviour?)
Attempting a better way of doing keyboard navigation in v3. Because the main post entry box is now a multi-line textarea
rather than an input
, I'd prefer to keep the arrow keys working as the user expects when that has focus.
The way I've decided to go is that rather than auto-focussing the post entry box, the main body of the page retains focus by default. The page itself now scrolls instead of having an inner div, so Up/Down/Left/Right keys should work as expected. The post entry box can now be focussed by pressing "T" anywhere on the page, and de-focussed by pressing Escape.
Jumping left/right through columns with a mouse is annoying. Keyboard shortcuts will protect you from the terrible secret of space.