Skip to content

Commit 1dfb7a6

Browse files
committed
NEXT-ONLY: fix ctrlaltdel PR to work with custom keymaps
Alters ActionBar.tsx to make the CTRL+ALT+DEL button in the Action Bar PR work again with layered with jetkvm#116 - not pulling into the PR until jetkvm#116 has been integrated, but the my PR will probably just be dropped anyway.
1 parent 471dfb6 commit 1dfb7a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/ActionBar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import MountPopopover from "./popovers/MountPopover";
1818
import { Fragment, useCallback, useRef } from "react";
1919
import { CommandLineIcon } from "@heroicons/react/20/solid";
2020
import useKeyboard from "@/hooks/useKeyboard";
21-
import { keys, modifiers } from "@/keyboardMappings";
21+
import { keyboardMappingsStore } from "@/keyboardMappings/KeyboardMappingStore";
2222

2323
export default function Actionbar({
2424
requestFullscreen,
@@ -218,8 +218,8 @@ export default function Actionbar({
218218
LeadingIcon={FaLock}
219219
onClick={() => {
220220
sendKeyboardEvent(
221-
[keys["Delete"]],
222-
[modifiers["ControlLeft"], modifiers["AltLeft"]],
221+
[keyboardMappingsStore.keys["Delete"]],
222+
[keyboardMappingsStore.modifiers["ControlLeft"], keyboardMappingsStore.modifiers["AltLeft"]],
223223
);
224224
setTimeout(resetKeyboardState, 100);
225225
}}

0 commit comments

Comments
 (0)