One-KVM/web/kvm/navbar-shortcuts.pug
mofeng-git 2c056ca3e3 feat: merge upstream master - version 4.94
Merge upstream PiKVM master branch updates:

- Bump version from 4.93 to 4.94
- HID: improved jiggler pattern for better compatibility
- Streamer: major refactoring for improved performance and maintainability
- Prometheus: tidying GPIO channel name formatting
- Web: added __gpio-label class for custom styling
- HID: customizable /api/hid/print delay configuration
- ATX: independent power/reset regions for better control
- OLED: added --fill option for display testing
- Web: improved keyboard handling in modal dialogs
- Web: enhanced login error messages
- Switch: added heartbeat functionality
- Web: mouse touch code simplification and refactoring
- Configs: use systemd-networkd-wait-online --any by default
- PKGBUILD: use cp -r to install systemd units properly
- Various bug fixes and performance improvements
2025-08-21 11:26:59 +08:00

83 lines
3.3 KiB
Plaintext

li.right#shortcuts-dropdown
a.menu-button(href="#" i18n="kvm_text56") Shortcuts
.menu#shortcuts-menu
.text
b(i18n="kvm_text57") Quick keyboard shortcuts#[br]
sub(i18n="kvm_text58") Also see #[i System → Show keyboard]
hr
.buttons
.buttons-row
button.row50(data-force-hide-menu data-shortcut="CapsLock")
| • Caps Lock  
img.inline-lamp-small.hid-keyboard-caps-led.led-gray(src=`${svg_dir}/led-square.svg`)
button.row50(data-force-hide-menu data-shortcut="MetaLeft") • Left Win
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="AltLeft ShiftLeft") • Alt+Shift
button.row50(data-force-hide-menu data-shortcut="ControlLeft KeyW") • Ctrl+W
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft ShiftLeft") • Ctrl+Shift
button.row50(data-force-hide-menu data-shortcut="AltLeft Tab") • Alt+Tab
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ShiftLeft ShiftRight") • Shift+Shift
button.row50(data-force-hide-menu data-shortcut="AltLeft Enter") • Alt+Enter
.buttons-row
button.row50(data-force-hide-menu data-shortcut="MetaLeft Space") • Win+Space
button.row50(data-force-hide-menu data-shortcut="AltLeft F4") • Alt+F4
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft F1") • Ctrl+Alt+F1
button.row50(data-force-hide-menu data-shortcut="MetaLeft KeyL") • Win+L
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft F2") • Ctrl+Alt+F2
button.row50(data-force-hide-menu data-shortcut="PrintScreen") • Print Screen
hr
.buttons-row
button.row50(data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete") • Ctrl+Alt+Del
button.row50(data-force-hide-menu data-shortcut="Power") • Power
hr
.text
| &darr; &bull; Alt+SysRq+... <sup><i>linux magic
| #[a(target="_blank" href="https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html" i18n="kvm_text59") help]</i></sup>
hr
.buttons
.buttons-row
-
let sysrq = {
"F": "Call the OOM killer to kill a memory hog process",
"M": "Dump current memory info to the console",
"D": "Show all locks that are held",
"T": "Dump a list of current tasks and their information to the console",
}
each title, key in sysrq
button.row25(
data-shortcut=`AltLeft PrintScreen Key${key}`
data-shortcut-confirm="hid-sysrq-ask-switch"
style="text-align: center"
title=`${title}`
) #{key}
hr
.buttons-row
-
sysrq = {
"R": "Turn off keyboard raw mode, set it to XLATE",
"E": "Send a SIGTERM to all processes, except for init",
"I": "Send a SIGKILL to all processes, except for init",
"S": "Attempt to sync all mounted filesystems",
"U": "Attempt to remount all mounted filesystems read-only",
"B": "Immediately reboot the system without syncing or unmounting disks",
}
each title, key in sysrq
button.row16(
data-shortcut=`AltLeft PrintScreen Key${key}`
data-shortcut-confirm="hid-sysrq-ask-switch"
style="text-align: center"
title=`${title}`
) #{key}
hr
+menu_switch_table("hid-sysrq-ask-switch", "Ask the magic confirmation", true, true,"hid-sysrq-ask-switch")