2022-03-14 14:25:51 +01:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`KeyboardShortcut doesn't render + if last 1`] = `
|
|
|
|
<KeyboardKey
|
|
|
|
last={true}
|
|
|
|
name="a"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
</KeyboardKey>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`KeyboardShortcut doesn't render same modifier twice 1`] = `
|
|
|
|
<KeyboardShortcut
|
|
|
|
value={
|
|
|
|
Object {
|
|
|
|
"ctrlOrCmdKey": true,
|
|
|
|
"key": "a",
|
|
|
|
"metaKey": true,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
2022-03-21 12:41:32 +01:00
|
|
|
<div
|
|
|
|
className="mx_KeyboardShortcut"
|
|
|
|
>
|
2022-03-14 14:25:51 +01:00
|
|
|
<KeyboardKey
|
|
|
|
key="ctrlOrCmdKey"
|
|
|
|
name="Control"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
2022-05-16 14:28:24 +02:00
|
|
|
Ctrl
|
2022-03-14 14:25:51 +01:00
|
|
|
|
|
|
|
</kbd>
|
|
|
|
+
|
|
|
|
</KeyboardKey>
|
|
|
|
<KeyboardKey
|
|
|
|
last={true}
|
|
|
|
name="a"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
</KeyboardKey>
|
|
|
|
</div>
|
|
|
|
</KeyboardShortcut>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`KeyboardShortcut doesn't render same modifier twice 2`] = `
|
|
|
|
<KeyboardShortcut
|
|
|
|
value={
|
|
|
|
Object {
|
|
|
|
"ctrlKey": true,
|
|
|
|
"ctrlOrCmdKey": true,
|
|
|
|
"key": "a",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
2022-03-21 12:41:32 +01:00
|
|
|
<div
|
|
|
|
className="mx_KeyboardShortcut"
|
|
|
|
>
|
2022-03-14 14:25:51 +01:00
|
|
|
<KeyboardKey
|
|
|
|
key="ctrlOrCmdKey"
|
|
|
|
name="Control"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
2022-05-16 14:28:24 +02:00
|
|
|
Ctrl
|
2022-03-14 14:25:51 +01:00
|
|
|
|
|
|
|
</kbd>
|
|
|
|
+
|
|
|
|
</KeyboardKey>
|
|
|
|
<KeyboardKey
|
|
|
|
last={true}
|
|
|
|
name="a"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
</KeyboardKey>
|
|
|
|
</div>
|
|
|
|
</KeyboardShortcut>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`KeyboardShortcut renders alternative key name 1`] = `
|
|
|
|
<KeyboardKey
|
|
|
|
name="PageDown"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
2022-05-16 14:28:24 +02:00
|
|
|
Page Down
|
2022-03-14 14:25:51 +01:00
|
|
|
|
|
|
|
</kbd>
|
|
|
|
+
|
|
|
|
</KeyboardKey>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`KeyboardShortcut renders key icon 1`] = `
|
|
|
|
<KeyboardKey
|
|
|
|
name="ArrowDown"
|
|
|
|
>
|
|
|
|
<kbd>
|
|
|
|
|
|
|
|
↓
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
+
|
|
|
|
</KeyboardKey>
|
|
|
|
`;
|