Skip to content

Commit

Permalink
Added ctrl key to override card layout hook
Browse files Browse the repository at this point in the history
  • Loading branch information
RicBent committed Dec 9, 2021
1 parent af0f90d commit 501189e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/card_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def CardLayout_init_hook(self, mw: AnkiQt, note: Note, *args, **kwargs):
if note:
note_type = note.note_type()
if nt_was_installed(note_type):
if nt_was_installed(note_type) and not mw.app.queryKeyboardModifiers() & Qt.ControlModifier:
parent = kwargs.get('parent', mw)
util.show_info(
'The default Migaku note types cannot be edited because they are automatically updated and your changes would be lost.\n\n'
Expand Down

0 comments on commit 501189e

Please sign in to comment.