2

My extension is a sidebar. I've set a hotkey to open it (AltShiftC). The keyboard shortcut works perfectly but is not shown next to its menu item.

What can I do to show the hotkey ?

dg99
  • 5,456
  • 3
  • 37
  • 49
user3433920
  • 131
  • 1
  • 6

1 Answers1

0

You'll have to include a line in your sidebar.html file that shows the user what the hotkey is.

<span>Shortcut: alt+shift+c</span>
willlma
  • 7,353
  • 2
  • 30
  • 45
  • Ok, but overlay extensions displayed the shortcut on the sidebar menu... There is any solution to do this with the addon-sdk ? – user3433920 Jun 11 '14 at 11:10
  • Not that I know of. You'll just have to use HTML and CSS to style it in the same way. – willlma Jun 11 '14 at 17:23
  • Okay, I understand your answer. But, I don't want to display the shortcut on the sidebar .. But, I want to display it on the native sidebar menu (like the history sidebar, bookmarks, ...) – user3433920 Jul 09 '14 at 16:04