Skip to content

Commit

Permalink
#2779 shortcut for showing the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 26, 2022
1 parent 9e960d2 commit d253836
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/share/man/man1/xpra.1
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,8 @@ Shows the menu normally found in the system tray.
Shows the start new command dialog.
.IP \fBshow_shortcuts\fP
Shows the list of shortcuts.
.IP \fBshow_docs\fP
Shows the documentation in a browser window.
.IP \fBmagic_key\fP
Placeholder which can be used by some client toolkits.
.IP \fBvoid\fP
Expand Down
3 changes: 3 additions & 0 deletions xpra/client/client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,9 @@ def show_file_upload(self, *args):
def show_shortcuts(self, *args):
self._client.show_shortcuts(*args)

def show_docs(self, *args):
self._client.show_docs(*args)


def log(self, message=""):
log.info(message)
Expand Down
4 changes: 4 additions & 0 deletions xpra/client/gtk_base/gtk_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ def show_about(self, *_args):
force_focus()
about()

def show_docs(self, *_args):
from xpra.scripts.main import run_docs
run_docs()

def show_shortcuts(self, *_args):
if self.shortcuts_info and not self.shortcuts_info.is_closed:
force_focus()
Expand Down
1 change: 1 addition & 0 deletions xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,7 @@ def get_default_key_shortcuts():
(True, "#+F4:quit"),
(True, "#+F5:show_window_info"),
(True, "#+F6:show_shortcuts"),
(True, "#+F7:show_docs"),
(True, "#+F10:magic_key"),
(True, "#+F11:show_session_info"),
(True, "#+F12:toggle_debug"),
Expand Down

0 comments on commit d253836

Please sign in to comment.