Don't show virtual keyboard button in webkit

Webkit browsers don't support Media Queries 4, which means we have to
use a slightly convoluted syntax when writing "@media not...". Otherwise
the "(any-pointer: coarse)" part evaluates as the device part of the
query.
This commit is contained in:
Samuel Mannehed 2022-12-22 10:22:34 +01:00
parent 4fb2d6c497
commit ec45911456
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ html {
:root:not(.noVNC_connected) #noVNC_mobile_buttons { :root:not(.noVNC_connected) #noVNC_mobile_buttons {
display: none; display: none;
} }
@media not (any-pointer: coarse) { @media not all and (any-pointer: coarse) {
/* FIXME: The button for the virtual keyboard is the only button in this /* FIXME: The button for the virtual keyboard is the only button in this
group of "mobile buttons". It is bad to assume that no touch group of "mobile buttons". It is bad to assume that no touch
devices have physical keyboards available. Hopefully we can get devices have physical keyboards available. Hopefully we can get