We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ffb21 commit b5d8324Copy full SHA for b5d8324
source/app.svelte
@@ -8,7 +8,6 @@
8
9
const getI18N = chrome.i18n.getMessage;
10
const undoStack = new UndoStack(window);
11
- // Replace the whole kbd because some locales don't call it "ctrl"
12
13
const myid = getI18N('@@extension_id');
14
let extensions = [];
source/lib/undo-stack.js
@@ -4,7 +4,8 @@ export default class UndoStack {
4
static isMac = navigator.platform.includes('Mac');
5
static replaceKbdOnMac = string =>
6
UndoStack.isMac
7
- ? string.replaceAll(/<kbd>(.*?)<\/kbd>/g, '<kbd>⌘Z</kbd>')
+ // Some locales don't call it "ctrl"
+ ? string.replace(/(?<=>)[a-z]+\+z/i, '⌘Z')
: string;
constructor(element) {
0 commit comments