Keyboard shortcuts wish list


(TechnoBear) #1

Keyboard shortcuts to the Profile page and Hamburger menu would be greatly appreciated. The Hamburger menu is much easier to navigate for non-mouse-users than the Categories page.


Keyboard shortcuts for the autocomplete search results
Accessibility / Assistive technology support?
(cpradio) #2

Just to add more info, it would be nice if any shortcuts to these menus would also place the focus in them, so tabbing, doesn’t take you away from them again.


(cpradio) #3

Anyone want to suggest shortcuts for the hamburger menu and the profile menu?

p for the profile menu?

What about the hamburger menu? Can’t use m because that is used for muting, so I’m open to suggestions. My goal is to work on this, this week.


Some kind of notification when keyboard shortcuts do something off-screen
(Dave McClure) #4

hamburger: = ?


(cpradio) #5

I like that. :smile:


(Sam Saffron) #6

A PR to add that shortcut is welcome, should be fairly simple to wire up.


(cpradio) #7

Yep, it is. Getting it to focus on the first link is proving to be interesting though. As the data isn’t loaded yet, so there is a race condition.


(cpradio) #8

https://github.com/discourse/discourse/pull/2704

I’ll submit another pull request to set focus to the first link, once I get that working :smile:


(cpradio) #9

Second PR to apply focus on the hamburger and profile menus. Still need to come up with a good solution for the notification menu (but if you open it, close it, and re-open it quickly, it sets the focus ;))
https://github.com/discourse/discourse/pull/2713


(Gerhard Schlager) #10

Could you by any chance change the shortcuts for “Next/previous section”? Those currently do not work on some keyboard layouts.

I suggest using Shift+K and Shift+J.


Keyboard shortcuts for "Next/previous section" do not work with German keyboard layout
(cpradio) #11

I just put in a better PR for the tabbing through the Site Map and Profile menus (one that doesn’t interfere with the mouse interaction).
https://github.com/discourse/discourse/pull/2715

I’m getting push back because I’m not supporting the up/down keys… there is a reason for that. Keyboard users use up/down to scroll a page, not cycle through links. Tab is used to cycle through links. In fact, the up/down interaction breaks the search results for keyboard users. We can’t open Show More :frowning:

So if this is on your wish list, please help show your support for it. :smile:


(Jeff Atwood) #12

Personally I think tab is fine.


(Dave McClure) #13

Sorry for being pedantic. For actual dropdowns, up/down is more typical. But the hamburger menu and profile popups aren’t really dropdown menus anyway, I suppose… Don’t mind me.


(Sam Saffron) #14

your alopogy has been accepted by the management :slight_smile:


(Dave McClure) #15

Now I think you’re just messing with me. You didn’t think I could let that slip by, did you?


(cpradio) #16

Yes, for actual “select2” – think category drop downs, don’t think search, notifications, or menus :slight_smile:

I can definitely accept that up/down should work for places where a select html control would be used (or select2, or whatever Discourse is now using ;)). That I very much agree with.

Sorry, if our discussion got lost in translation, it didn’t occur to me that may have been the line of thought.


(Lowell Heddings) #17

Unless I’m confused, I don’t think there’s a keyboard shortcut to expand the new or updated topics. I can use G U to switch to the unread, but it would be nice to be able to just expand the latest.

I suggest . (period) as the shortcut.


(TechnoBear) #18

That’s related to this:

https://meta.discourse.org/t/new-updated-bar-and-dismiss-new-button-unreachable-by-keyboard/18946?source_topic_id=15952

(Zane Beckman) #19

A shortcut to compose a new reply to the current topic.

I’ve seen the ` key used successfully for this purpose, (and it’s quite nice) but you have to check to make sure a textbox doesn’t currently have focus, etc,etc.


(TechnoBear) #20

Shift + r replies to topic.

If you mean a shortcut for “Reply as New Topic”, I’d love that too. :slight_smile: Possibly t?


Reply as new topic - keyboard problem