Skip to content

Commit

Permalink
Merge pull request #9 from akfish/master
Browse files Browse the repository at this point in the history
Fix virtual keyboard display on mobile device
  • Loading branch information
rabchev committed Jun 28, 2014
2 parents a930443 + c53ec13 commit 1ad0e46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
</head>
<body>
<input type="text" id="hidden-input"/>
<div id="content"></div>

<script src="/socket.io/socket.io.js"></script>
<script src="jquery.js"></script>
<script src="init.js"></script>
</body>
</html>
</html>
4 changes: 4 additions & 0 deletions web/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@
return output;
}

content.click(function (e) {
$("#hidden-input").focus();
});

$(window.document).keydown(function (e) {
var part1, part2;

Expand Down
5 changes: 5 additions & 0 deletions web/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ body {
.inverse {
background-color: #FFFFFF;
color: #290029;
}

#hidden-input {
position: absolute;
top: -100px;
}

0 comments on commit 1ad0e46

Please sign in to comment.