Skip to content

Commit

Permalink
fix: os specific labels and keys update
Browse files Browse the repository at this point in the history
Signed-off-by: Karthik Ayangar <karthik.ayangar7118@gmail.com>
  • Loading branch information
kituuu committed Mar 14, 2024
1 parent 4e11ac4 commit bd80e7e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions wagtail/admin/templatetags/wagtailadmin_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -1310,14 +1310,19 @@ def keyboard_shortcuts_dialog(context):
{"label": _("Cut"), "shortcut": f"{modifier} + x"},
{"label": _("Paste"), "shortcut": f"{modifier} + v"},
{
"label": _("Paste without formatting"),
"label": _("Paste and Match Style")
if is_mac
else _("Paste without formatting"),
"shortcut": f"{modifier} + shift + v",
},
{"label": _("Undo"), "shortcut": f"{modifier} + z"},
{"label": _("Redo"), "shortcut": f"{modifier} + y"},
{
"label": _("Redo"),
"shortcut": f"{modifier} + Shift + z" if is_mac else f"{modifier} + y",
},
],
("page-editing-actions", _("Page editing actions")): [
{"label": _("Save"), "shortcut": f"{modifier} + s"},
{"label": _("Save changes"), "shortcut": f"{modifier} + s"},
{"label": _("Preview"), "shortcut": f"{modifier} + p"},
],
("text-formatting", _("Text Formatting")): [
Expand Down

0 comments on commit bd80e7e

Please sign in to comment.