mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
Add tooltips to SysRq shortcuts (#64)
Provide a helpful tooltip of what that SysRq shortcut does. As most people don't often (if ever) use SysRq keys, this will be a handy quick reference. Further details can still be gathered from the linked kernel.org article.
This commit is contained in:
parent
8f11fa3b91
commit
4dd3e8543f
@ -1,3 +1,13 @@
|
|||||||
|
-
|
||||||
|
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 your disks."
|
||||||
|
}
|
||||||
|
|
||||||
li(class="right")
|
li(class="right")
|
||||||
a(class="menu-button" href="#") Shortcuts
|
a(class="menu-button" href="#") Shortcuts
|
||||||
div(data-dont-hide-menu class="menu")
|
div(data-dont-hide-menu class="menu")
|
||||||
@ -33,5 +43,5 @@ li(class="right")
|
|||||||
hr
|
hr
|
||||||
div(class="buttons")
|
div(class="buttons")
|
||||||
div(class="buttons-row")
|
div(class="buttons-row")
|
||||||
each key in ["R", "E", "I", "S", "U", "B"]
|
each val, key in sysrq
|
||||||
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16") #{key}
|
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${val}`) #{key}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user