now using space key for emergency:

* it is larger and easier to hit!
* ESC is used to quit newly introduced full-screen mode
This commit is contained in:
Stephan Richter
2020-11-13 11:54:32 +01:00
parent fb61b7b033
commit 9eb8f5443a
3 changed files with 5 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>0.11.11</version>
<version>0.11.12</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>

View File

@@ -105,8 +105,7 @@ svg circle{
height: 30px;
min-width: 30px;
background: white;
padding: 3px;
padding: 3px;
text-align: center;
}
@@ -121,12 +120,12 @@ svg circle{
.menu > div > .list{
position: absolute;
left: 5%;
left: 0;
bottom: 40px;
width: 90%;
z-index: 10;
background: rgb(198,219,210,0.8);
padding: 20px 5px 0 5px;
padding: 20px 40px 0;
}
.menu > div > .list > *{

View File

@@ -118,7 +118,7 @@ function heartbeat(data){
}
function keypress(ev){
if (ev.key === "Escape") request({realm:"cu",action:"emergency"})
if (ev.key === " ") request({realm:"cu",action:"emergency"})
}
function moveTile(x,y){