Skip to content

Commit e8697d1

Browse files
committed
App: context menu hotkeys
[skip ci]
1 parent 73e6730 commit e8697d1

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

scripts/gdrive_app.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,12 @@ def on_context_menu(self, pos):
707707

708708
file_data = item.data(Qt.ItemDataRole.UserRole)
709709
menu = QMenu(self)
710-
copy_id_action = menu.addAction("Copy ID")
711-
copy_link_action = menu.addAction("Copy URL")
712-
open_browser_action = menu.addAction("Open in browser...")
713-
rename_action = menu.addAction("Rename...")
714-
move_file_action = menu.addAction("Move file...")
710+
# The & below marks which letter is the hotkey for that option
711+
copy_id_action = menu.addAction("Copy &ID")
712+
copy_link_action = menu.addAction("Copy &URL")
713+
open_browser_action = menu.addAction("&Open in browser...")
714+
rename_action = menu.addAction("&Rename...")
715+
move_file_action = menu.addAction("&Move file...")
715716

716717
action = menu.exec(self.file_view.viewport().mapToGlobal(pos))
717718
url = gdrive_base.GENERIC_LINK_PREFIX + file_data['id']

0 commit comments

Comments
 (0)