Skip to content

Commit

Permalink
Add accelerators for the filter checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed May 11, 2024
1 parent 981f3c6 commit 0b4d040
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/calibre/gui2/tweak_book/spell.py
Expand Up @@ -1183,11 +1183,11 @@ def hw(name, title, tooltip):
ac.setToolTip(tooltip)
h.addWidget(ac)
return ac
self.show_only_misspelt = hw('misspelled', _('spelled correctly'), _('Hide words that are spelled correctly'))
self.all_caps = hw('all-caps', _('ALL CAPS'), _('Hide words with all capital letters'))
self.with_numbers = hw('with-numbers', _('with numbers'), _('Hide words that contain numbers'))
self.camel_case = hw('camel-case', _('camelCase'), _('Hide words in camelCase'))
self.snake_case = hw('snake-case', _('snake_case'), _('Hide words in snake_case'))
self.show_only_misspelt = hw('misspelled', _('&spelled correctly'), _('Hide words that are spelled correctly'))
self.all_caps = hw('all-caps', _('&ALL CAPS'), _('Hide words with all capital letters'))
self.with_numbers = hw('with-numbers', _('with &numbers'), _('Hide words that contain numbers'))
self.camel_case = hw('camel-case', _('ca&melCase'), _('Hide words in camelCase'))
self.snake_case = hw('snake-case', _('sna&ke_case'), _('Hide words in snake_case'))
h.addStretch(10)

m.h2 = h = QHBoxLayout()
Expand Down

0 comments on commit 0b4d040

Please sign in to comment.