Repository: wagtail/wagtail
File: wagtail/admin/templatetags/wagtailadmin_tags.py (Python)

Code before:
                (_("Undo"), f"{KEYS.MOD} + z"),
                (
                    _("Redo"),
                    f"{KEYS.MOD} + {KEYS.SHIFT} + z" if is_mac else f"{KEYS.MOD} + y",
                ),
            ],
            ("actions", _("Actions")): [
                (_("Save changes"), f"{KEYS.MOD} + s"),
                (_("Preview"), f"{KEYS.MOD} + p"),
                (_("Add or show comments"), f"{KEYS.CTRL} + {KEYS.ALT} + m")
                if comments_enabled
                else None,
            ],
            ("application", _("Application")): [
                (_("Show keyboard shortcuts"), "?"),
                (_("Search"), "/"),
                (_("Toggle sidebar"), "["),
                (_("Toggle minimap"), "]"),
                (_("Close modal dialogs (like this one)"), f"{KEYS.ESC}"),
            ],
            ("text-formatting", _("Text formatting")): [
                (_("Bold"), f"{KEYS.MOD} + b"),
                (_("Italic"), f"{KEYS.MOD} + i"),
                (_("Insert or edit a link"), f"{KEYS.MOD} + k"),
                (_("Monospace (code)"), f"{KEYS.MOD} + j"),
                (_("Strike-through"), f"{KEYS.MOD}+ {KEYS.SHIFT} + x"),
                (_("Superscript"), f"{KEYS.MOD} + ."),
                (_("Subscript"), f"{KEYS.MOD} + ,"),
            ],
        }
    }


@register.inclusion_tag("wagtailadmin/shared/human_readable_date.html")
def human_readable_date(date, description=None, placement="top"):
    if isinstance(date, datetime.datetime):
        tooltip_format = get_format("DATETIME_FORMAT") or "N j, Y, P"
    elif isinstance(date, datetime.date):
        tooltip_format = get_format("DATE_FORMAT") or "N j, Y"
    return {
        "date": date,
        "description": description,
        "placement": placement,
        "tooltip_format": tooltip_format,
    }


# Shadow the laces `component` tag which was extracted from Wagtail. The shadowing
# is useful to avoid having to update all the templates that use the `component` tag.
register.tag("component", component)


Review comment (suggestion):
```suggestion
                (_("Strike-through"), f"{KEYS.MOD} + {KEYS.SHIFT} + x"),
```

White space missing.

Code after:
                (_("Save changes"), f"{KEYS.MOD} + s"),
                (_("Preview"), f"{KEYS.MOD} + p"),
                (_("Add or show comments"), f"{KEYS.CTRL} + {KEYS.ALT} + m")
                if comments_enabled
                else None,
            ],
            # Translators: Shortcuts for common text editing features available in all fields (even if not a rich text field)
            ("text-editing-basic", _("Text editing")): [
                (_("Copy"), f"{KEYS.MOD} + c"),
                (_("Cut"), f"{KEYS.MOD} + x"),
                (_("Paste"), f"{KEYS.MOD} + v"),
                (
                    _("Paste and match style")
                    if is_mac
                    else _("Paste without formatting"),
                    f"{KEYS.MOD} + {KEYS.SHIFT} + v",
                ),
                (_("Undo"), f"{KEYS.MOD} + z"),
                (
                    _("Redo"),
                    f"{KEYS.MOD} + {KEYS.SHIFT} + z" if is_mac else f"{KEYS.MOD} + y",
                ),
            ],
            # Translators: Shortcuts for formatting & editing features available in rich text fields
            ("text-editing-rich-text", _("Text formatting")): [
                (_("Insert or edit a link"), f"{KEYS.MOD} + k"),
                (_("Bold"), f"{KEYS.MOD} + b"),
                (_("Italic"), f"{KEYS.MOD} + i"),
                (_("Monospace (code)"), f"{KEYS.MOD} + j"),
                (_("Strike-through"), f"{KEYS.MOD} + {KEYS.SHIFT} + x"),
                (_("Superscript"), f"{KEYS.MOD} + ."),
                (_("Subscript"), f"{KEYS.MOD} + ,"),
            ],
        }
    }


@register.inclusion_tag("wagtailadmin/shared/human_readable_date.html")
def human_readable_date(date, description=None, placement="top"):
    if isinstance(date, datetime.datetime):
        tooltip_format = get_format("DATETIME_FORMAT") or "N j, Y, P"
    elif isinstance(date, datetime.date):
        tooltip_format = get_format("DATE_FORMAT") or "N j, Y"
    return {
        "date": date,
        "description": description,
        "placement": placement,
        "tooltip_format": tooltip_format,
    }