splitAccessKey function

Module @runic-artifex/views in @runic-artifex/views 0.23.0

function splitAccessKey(entry: MenuBarMenu | MenuBarItem): readonly [
    before: string,
    key: string,
    after: string
];

Splits an entry's label around its access key, to underline the key while accessKeyHints is true. Without an access key the whole label is before.