Topic on Talk:Talk pages project/Replying/Flow

Request: Enable keyboard shortcuts

7
Summary by PPelberg (WMF)

T264913: Show keyboard shortcuts for Reply/Cancel in tooltips

ネイ (talkcontribs)
Patrik L. (talkcontribs)

I agree. :)

Matma Rex (talkcontribs)

We might add them, although that might conflict with our plans to allow opening multiple reply widgets at the same time (since with global accesskeys like those, we have no way to control which action is triggered when there is a conflict).

Note also that you can publish a reply by pressing Ctrl+Enter, or cancel by pressing Escape. Maybe we should have those shortcuts displayed in button tooltips or something.

ネイ (talkcontribs)

If we already have a keyboard shortcut, then we don't need another. However, this topic proves the need for the shortcuts to be displayed somewhere. (I noticed Escape = cancel by chance, but not Ctrl-Enter)

PPelberg (WMF) (talkcontribs)

@ネイ + @Tacsipacsi: displaying the keyboard shortcuts that correspond to the Reply Tool's "Cancel" and "Reply" buttons is a good idea.

We'll be implementing this functionality in this task: T264913.

Tacsipacsi (talkcontribs)

Multiple shortcuts don’t cause any issues by virtue of being multiple—for example, when the focus is on the edit summary field using the traditional full-page editor, one might save the edit both by pressing Enter and with the shortcut key [whatever]+S; VisualEditor’s save dialog recognizes both the traditional [whatever]+S access key and Ctrl+Enter; and so on. If you can differentiate between the Ctrl+Enter presses, what prevents you from doing so with the usual access key? You don’t need to actually use the accesskey attribute; jquery.accessKeyLabel has a nice collection of the modifiers of different browser/platform combinations. (By the way, Structured Discussions, which we’re using right now, displays shortcuts for the Reply and Cancel buttons in tooltips.)

Matma Rex (talkcontribs)

You don’t need to actually use the accesskey attribute; jquery.accessKeyLabel has a nice collection of the modifiers of different browser/platform combinations.

Yeah, I guess you're right about this. It would be more work to implement and test it, but it's possible.

Reply to "Request: Enable keyboard shortcuts"