Skip to content

Commit 53ff026

Browse files
committed
window: Assign Ctrl+H shortcut to actionViewHtml
Fixes #519.
1 parent a1499f6 commit 53ff026

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ReText/window.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,12 @@ def __init__(self, parent=None):
187187
self.printFile, shct=QKeySequence.StandardKey.Print)
188188
self.actionPrintPreview = self.act(self.tr('Print preview'), 'document-print-preview',
189189
self.printPreview)
190-
self.actionViewHtml = self.act(self.tr('View HTML code'), 'text-html', self.viewHtml)
190+
self.actionViewHtml = self.act(
191+
self.tr('View HTML code'),
192+
'text-html',
193+
self.viewHtml,
194+
shct=Qt.Modifier.CTRL | Qt.Key.Key_H,
195+
)
191196
self.actionChangeEditorFont = self.act(self.tr('Change editor font'),
192197
trig=self.changeEditorFont)
193198
self.actionChangePreviewFont = self.act(self.tr('Change preview font'),

0 commit comments

Comments
 (0)