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

Add option to view all keyboard shortcuts available in the app #874

Open
1 task done
colinkiama opened this issue Sep 5, 2020 · 9 comments
Open
1 task done

Add option to view all keyboard shortcuts available in the app #874

colinkiama opened this issue Sep 5, 2020 · 9 comments

Comments

@colinkiama
Copy link
Sponsor Member

Prerequisites

  • I have searched open and closed issues for duplicates.

Feature

Is your feature request related to a problem? Please describe.

I don't know if there's a faster way to do something with the keyboard instead of the mouse because I don't know the keyboard shortcuts available in the app.

Describe the solution you'd like

An additional entry under the app's settings called "Keyboard Shortcuts". Selecting it should open a window that displays all the keyboard shortcuts available in the app. We should be able to continue working in code while the keyboard shortcuts window is still open.

Existing work

When you press the super key, the elementaryOS shows a list of keyboard shortcuts available. Shortcuts are grouped in sections
that describe the context of their usage.

Additional context
https://elementaryos.stackexchange.com/questions/17256/what-keyboard-shortcuts-are-available-in-code

@jeremypw
Copy link
Collaborator

jeremypw commented Sep 5, 2020

I am pretty sure this has been discussed in a more general sense - there should ideally be an easy way all apps can do this with a consistent UX. For example see elementary/shortcut-overlay#53. Unfortunately its not simple to implement.

@jeremypw
Copy link
Collaborator

jeremypw commented Sep 5, 2020

One thing that would be easy to do would be to add a page to the wiki showing the shortcuts. This could be linked to the F1 key which currently does nothing.

@colinkiama
Copy link
Sponsor Member Author

Yeah, a wiki page would be a great compromise! 👍

@jeremypw
Copy link
Collaborator

jeremypw commented Sep 6, 2020

I have put up a simple page on the wiki listing the shortcuts I found in the code at https://github.com/elementary/code/wiki/shortcuts
If I have got anything wrong or if something changes please let me know.

@jeremypw jeremypw changed the title Add option to view all keyboard shortucts available in the app Add option to view all keyboard shortcuts available in the app Sep 6, 2020
@jeremypw
Copy link
Collaborator

jeremypw commented Oct 1, 2020

Unfortunately the design team were not OK with having a link to a remote website in the app.

@colinkiama
Copy link
Sponsor Member Author

Hmm, what about displaying the shortcuts in a Shortcuts Window?: https://docs.gtk.org/gtk3/class.ShortcutsWindow.html

@jeremypw
Copy link
Collaborator

jeremypw commented Nov 20, 2023

@colinkiama Yes, a local solution is probably the only way to fix this in the short term - I was hoping a system-level solution would materialise that all elementary apps could utilise to give a consistent UI but maybe its time to just go ahead with a Gtk.ShortcutsWindow (which also exists in Gtk4). @danirabbit What do you think?

@zeebok
Copy link
Contributor

zeebok commented Nov 22, 2023

I was hoping a system-level solution would materialise that all elementary apps could utilise to give a consistent UI

You mean something in Gala where you could, for example, press Super-H in any app and it lists all of the registered actions and the key board shortcuts? That would be pretty cool.

@jeremypw
Copy link
Collaborator

@zeebok Yes, something like that but I imagine it would still require each app to actively register the actions/shortcuts with the window manager or maybe implement a Dbus interface. I don't see how it can work transparently. Notwithstanding that. it would ensure a consistent UI.

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 a pull request may close this issue.

3 participants