Skip to content

Add riot-desktop shortcuts for forward/back matching browsers&slack#13133

Merged
t3chguy merged 1 commit intodevelopfrom
t3chguy/electron-forward-back
Apr 14, 2020
Merged

Add riot-desktop shortcuts for forward/back matching browsers&slack#13133
t3chguy merged 1 commit intodevelopfrom
t3chguy/electron-forward-back

Conversation

@t3chguy
Copy link
Copy Markdown
Member

@t3chguy t3chguy commented Apr 11, 2020

Fixes #12920
Requires matrix-org/matrix-react-sdk#4392
Requires element-hq/element-desktop#68

Matches browser default shortcuts for forward/back and also Slack

image

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@Valodim
Copy link
Copy Markdown

Valodim commented Apr 13, 2020

thank you 👍

Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB. windows has the concept of a 'back' sat the system level for keyboards/mics with dedicated 'back' buttons, which electron represents through app-command (https://www.electronjs.org/docs/api/browser-window#event-app-command-windows-linux) - we should probably wire this up too if electron doesn't do it automatically.

More frustratingly, macos doesn't have a system level conecpt of 'back', but it does have the three-finger swipe gestures. We should probably also support these. To make things more complex, cmd+left/right also work as back/forward in chrome on Mac (and indeed is what I use). Unsure if we want to support this to be consistent with chrome.

Also also does this need a riot-desktop PR?

@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented Apr 14, 2020

I already wired that app-command years ago. (and I use it LOADS)
image

Yup I will port to riot-desktop also

@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented Apr 14, 2020

To make things more complex, cmd+left/right also work as back/forward in chrome on Mac (and indeed is what I use). Unsure if we want to support this to be consistent with chrome.

Hmm, but aren't cmd + left/right used for text field jumping between words?

image

@t3chguy
Copy link
Copy Markdown
Member Author

t3chguy commented Apr 14, 2020

Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, then awesome. And yeah, I guess that shortcut is a bit weird in that it does different things depending on whether you're in a text box or not. lgtm then.

@t3chguy t3chguy merged commit 24dbbfa into develop Apr 14, 2020
@t3chguy t3chguy deleted the t3chguy/electron-forward-back branch May 12, 2022 09:08
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

Successfully merging this pull request may close these issues.

should cmd-left/right square bracket mimic browser back/fwd buttons in desktop?

3 participants