Add keyboard accelerators for the normal and HTML tabs in the comments editor

This commit is contained in:
Kovid Goyal 2014-11-03 08:39:12 +05:30
parent 6eff053a6b
commit 1bd6c935e1

View File

@ -652,8 +652,8 @@ class Editor(QWidget): # {{{
tb.addWidget(self.toolbar3)
l.addWidget(self.editor)
self._layout.addWidget(self.tabs)
self.tabs.addTab(self.wyswyg, _('Normal view'))
self.tabs.addTab(self.code_edit, _('HTML Source'))
self.tabs.addTab(self.wyswyg, _('N&ormal view'))
self.tabs.addTab(self.code_edit, _('&HTML Source'))
self.tabs.currentChanged[int].connect(self.change_tab)
self.highlighter = Highlighter(self.code_edit.document())
self.layout().setContentsMargins(0, 0, 0, 0)