summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-18 03:57:02 +0300
committerMaxim Devaev <[email protected]>2023-08-18 03:57:02 +0300
commit315a07173bd617018e1b2f8c29e9b966502c0c78 (patch)
treef273aa6156441962ceeab9c1bfd68706ef42af53
parentd91bcdce25d42e915085da680af1f9497e4918a8 (diff)
pikvm/pikvm#1090: web: added print screen shortcut
-rw-r--r--web/kvm/index.html9
-rw-r--r--web/kvm/navbar-shortcuts.pug8
2 files changed, 11 insertions, 6 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index e2b072db..8374b5d9 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -702,7 +702,7 @@
</div>
</li>
<li class="right" id="shortcuts-dropdown"><a class="menu-button" href="#">Shortcuts</a>
- <div class="menu">
+ <div class="menu" id="shortcuts-menu">
<div class="text"><b>Quick keyboard shortcuts<br></b><sub>Also see <i>System &rarr; Show keyboard</i></sub></div>
<hr>
<div class="buttons">
@@ -730,12 +730,15 @@
<hr>
<div class="buttons-row">
<button class="row50" data-force-hide-menu data-shortcut="ControlLeft AltLeft F1">&bull; Ctrl+Alt+F1</button>
+ <button class="row50" data-force-hide-menu data-shortcut="MetaLeft KeyL">&bull; Win+L</button>
+ </div>
+ <div class="buttons-row">
<button class="row50" data-force-hide-menu data-shortcut="ControlLeft AltLeft F2">&bull; Ctrl+Alt+F2</button>
+ <button class="row50" data-force-hide-menu data-shortcut="PrintScreen">&bull; Print Screen</button>
</div>
<hr>
<div class="buttons-row">
- <button class="row50" data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete">&bull; Ctrl+Alt+Del</button>
- <button class="row50" data-force-hide-menu data-shortcut="MetaLeft KeyL">&bull; Win+L</button>
+ <button data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete">&bull; Ctrl+Alt+Del</button>
</div>
</div>
<hr>
diff --git a/web/kvm/navbar-shortcuts.pug b/web/kvm/navbar-shortcuts.pug
index 07fa846b..1a4ef7ad 100644
--- a/web/kvm/navbar-shortcuts.pug
+++ b/web/kvm/navbar-shortcuts.pug
@@ -1,6 +1,6 @@
li(id="shortcuts-dropdown" class="right")
a(class="menu-button" href="#") Shortcuts
- div(class="menu")
+ div(id="shortcuts-menu" class="menu")
div(class="text")
b Quick keyboard shortcuts#[br]
sub Also see #[i System &rarr; Show keyboard]
@@ -27,11 +27,13 @@ li(id="shortcuts-dropdown" class="right")
hr
div(class="buttons-row")
button(data-force-hide-menu data-shortcut="ControlLeft AltLeft F1" class="row50") &bull; Ctrl+Alt+F1
+ button(data-force-hide-menu data-shortcut="MetaLeft KeyL" class="row50") &bull; Win+L
+ div(class="buttons-row")
button(data-force-hide-menu data-shortcut="ControlLeft AltLeft F2" class="row50") &bull; Ctrl+Alt+F2
+ button(data-force-hide-menu data-shortcut="PrintScreen" class="row50") &bull; Print Screen
hr
div(class="buttons-row")
- button(data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete" class="row50") &bull; Ctrl+Alt+Del
- button(data-force-hide-menu data-shortcut="MetaLeft KeyL" class="row50") &bull; Win+L
+ button(data-force-hide-menu data-shortcut="ControlLeft AltLeft Delete") &bull; Ctrl+Alt+Del
hr
div(class="text")
| &darr; &bull; Alt+SysRq+... <sup><i>linux magic