From 463237229dbb4f65d5c62ed471f7100f1de4b0ce Mon Sep 17 00:00:00 2001 From: patrick kettner Date: Tue, 5 Oct 2021 19:32:38 -0400 Subject: [PATCH] don't show message about keyboards not working when you are following its recomendations to fix it (#70) --- web/index.html | 22 ++++++++++++---------- web/index.pug | 15 ++++++++------- web/share/css/index/index.css | 7 +++++++ 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/web/index.html b/web/index.html index 2e4fce32..c0cf343f 100644 --- a/web/index.html +++ b/web/index.html @@ -73,15 +73,17 @@

Loading ...

-
-

- Please note that when you are working with a KVM session or another application that captures the keyboard, - you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser). -

-

To override this limitation you can use Google Chrome - or Chromium in application mode. -

-
+
+
+

+ Please note that when you are working with a KVM session or another application that captures the keyboard, + you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser). +

+

To override this limitation you can use Google Chrome + or Chromium in application mode. +

+
+

Full documentation, the source code, and the legal information @@ -90,4 +92,4 @@ - \ No newline at end of file + diff --git a/web/index.pug b/web/index.pug index 2ba9297a..458d718a 100644 --- a/web/index.pug +++ b/web/index.pug @@ -27,14 +27,15 @@ block start div(id="apps-box") h4 Loading ... - hr + div(class="keyboard-warning") + hr + p(class="text") + | Please note that when you are working with a KVM session or another application that captures the keyboard, + | you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser). p(class="text") - | Please note that when you are working with a KVM session or another application that captures the keyboard, - | you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser). - p(class="text") - | To override this limitation you can use #[a(target="_blank" href="https://google.com/chrome") Google Chrome] - | or #[a(target="_blank" href="https://chromium.org/Home") Chromium] in application mode. - div(id="app-text" class="code") + | To override this limitation you can use #[a(target="_blank" href="https://google.com/chrome") Google Chrome] + | or #[a(target="_blank" href="https://chromium.org/Home") Chromium] in application mode. + div(id="app-text" class="code") hr p(class="text") diff --git a/web/share/css/index/index.css b/web/share/css/index/index.css index a22df685..847a1ab2 100644 --- a/web/share/css/index/index.css +++ b/web/share/css/index/index.css @@ -89,3 +89,10 @@ tr.server { font-weight: bold; font-family: monospace; } + +@media all and (display-mode: standalone) { + div.keyboard-warning { + display: none; + } +} +