mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-28 19:38:48 +08:00
117 lines
1.6 KiB
Plaintext
117 lines
1.6 KiB
Plaintext
// 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,
|
|
}
|
|
}
|
|
>
|
|
<div
|
|
className="mx_KeyboardShortcut"
|
|
>
|
|
<KeyboardKey
|
|
key="ctrlOrCmdKey"
|
|
name="Control"
|
|
>
|
|
<kbd>
|
|
|
|
missing translation: en|Ctrl
|
|
|
|
</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",
|
|
}
|
|
}
|
|
>
|
|
<div
|
|
className="mx_KeyboardShortcut"
|
|
>
|
|
<KeyboardKey
|
|
key="ctrlOrCmdKey"
|
|
name="Control"
|
|
>
|
|
<kbd>
|
|
|
|
missing translation: en|Ctrl
|
|
|
|
</kbd>
|
|
+
|
|
</KeyboardKey>
|
|
<KeyboardKey
|
|
last={true}
|
|
name="a"
|
|
>
|
|
<kbd>
|
|
|
|
a
|
|
|
|
</kbd>
|
|
</KeyboardKey>
|
|
</div>
|
|
</KeyboardShortcut>
|
|
`;
|
|
|
|
exports[`KeyboardShortcut renders alternative key name 1`] = `
|
|
<KeyboardKey
|
|
name="PageDown"
|
|
>
|
|
<kbd>
|
|
|
|
missing translation: en|Page Down
|
|
|
|
</kbd>
|
|
+
|
|
</KeyboardKey>
|
|
`;
|
|
|
|
exports[`KeyboardShortcut renders key icon 1`] = `
|
|
<KeyboardKey
|
|
name="ArrowDown"
|
|
>
|
|
<kbd>
|
|
|
|
↓
|
|
|
|
</kbd>
|
|
+
|
|
</KeyboardKey>
|
|
`;
|