1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Keybinding code unification #6 (#8042)

This commit is contained in:
Šimon Brandner
2022-03-14 14:25:51 +01:00
committed by GitHub
parent e725f14651
commit 8d13e238b9
10 changed files with 462 additions and 351 deletions

View File

@ -15,14 +15,13 @@ limitations under the License.
*/
import {
getKeyboardShortcutsForUI,
getKeyboardShortcuts,
KEYBOARD_SHORTCUTS,
mock,
} from "../../src/accessibility/KeyboardShortcuts";
import { getKeyboardShortcuts, getKeyboardShortcutsForUI } from "../../src/accessibility/KeyboardShortcutUtils";
import PlatformPeg from "../../src/PlatformPeg";
describe("KeyboardShortcuts", () => {
describe("KeyboardShortcutUtils", () => {
it("doesn't change KEYBOARD_SHORTCUTS when getting shortcuts", async () => {
mock({
keyboardShortcuts: {