Skip to content

Commit 6d13e1b

Browse files
authored
chore: remove ActionBar-Ctrl-Alt-Del (jetkvm#669)
1 parent bde0a08 commit 6d13e1b

File tree

4 files changed

+0
-60
lines changed

4 files changed

+0
-60
lines changed

ui/src/components/ActionBar.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -262,23 +262,6 @@ export default function Actionbar({
262262
}}
263263
/>
264264
</div>
265-
{/* {useSettingsStore().actionBarCtrlAltDel && (
266-
<div className="hidden lg:block">
267-
<Button
268-
size="XS"
269-
theme="light"
270-
text="Ctrl + Alt + Del"
271-
LeadingIcon={FaLock}
272-
onClick={() => {
273-
sendKeyboardEvent(
274-
[keys["Delete"]],
275-
[modifiers["ControlLeft"], modifiers["AltLeft"]],
276-
);
277-
setTimeout(resetKeyboardState, 100);
278-
}}
279-
/>
280-
</div>
281-
)} */}
282265
<div>
283266
<Button
284267
size="XS"

ui/src/hooks/stores.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ interface SettingsState {
308308
keyboardLayout: string;
309309
setKeyboardLayout: (layout: string) => void;
310310

311-
actionBarCtrlAltDel: boolean;
312-
setActionBarCtrlAltDel: (enabled: boolean) => void;
313-
314311
keyboardLedSync: KeyboardLedSync;
315312
setKeyboardLedSync: (sync: KeyboardLedSync) => void;
316313

@@ -359,9 +356,6 @@ export const useSettingsStore = create(
359356
keyboardLayout: "en-US",
360357
setKeyboardLayout: layout => set({ keyboardLayout: layout }),
361358

362-
actionBarCtrlAltDel: false,
363-
setActionBarCtrlAltDel: enabled => set({ actionBarCtrlAltDel: enabled }),
364-
365359
keyboardLedSync: "auto",
366360
setKeyboardLedSync: sync => set({ keyboardLedSync: sync }),
367361

ui/src/routes/devices.$id.settings.ctrlaltdel.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

ui/src/routes/devices.$id.settings.hardware.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,6 @@ export default function SettingsHardwareRoute() {
116116
}}
117117
/>
118118
</SettingsItem>
119-
{/* <SettingsItem
120-
title="Enable Ctrl+Alt+Del Action Bar"
121-
description="Enable or disable the action bar action for sending a Ctrl+Alt+Del to the host"
122-
>
123-
<Checkbox
124-
checked={actionBarConfig.ctrlAltDel}
125-
onChange={onActionBarItemChange("ctrlAltDel")}
126-
/>
127-
</SettingsItem> */}
128119
{settings.backlightSettings.max_brightness != 0 && (
129120
<>
130121
<SettingsItem

0 commit comments

Comments
 (0)