Merge pull request #94 from lukeIam/develop
Added a "p"-button to the apps keyboard (required for selecting player)
This commit is contained in:
commit
bf97a60327
2 files changed
+11
-2
No files matched your search
@@ -297,6 +297,9 @@
|
||||
<div class="ui-block-c">
|
||||
<a data-role="button" id="keyboardButtonReturn" data-i18n="keyboardButtonReturn"></a>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<a data-role="button" id="keyboardButtonP">P</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div style>
|
||||
<label for="keyboardButtonKeys" data-i18n="keyboardButtonKeys"></label>
|
||||
|
||||
@@ -22,7 +22,7 @@ if (document.location.protocol == "file:") {
|
||||
});
|
||||
}
|
||||
|
||||
function preStart(){
|
||||
function preStart() {
|
||||
translationLoaded = $.Deferred();
|
||||
initTranslation();
|
||||
|
||||
@@ -926,6 +926,12 @@ function initKeyboardPageHandler() {
|
||||
});
|
||||
});
|
||||
|
||||
$('#keyboardButtonP').click(function () {
|
||||
request({
|
||||
url: "sendKeyEvent?key=p"
|
||||
});
|
||||
});
|
||||
|
||||
$('#keyboardButtonKeys').keyup(function (e) {
|
||||
var c = String.fromCharCode(e.keyCode);
|
||||
if (c.match(/\w/)) {
|
||||
@@ -1279,4 +1285,4 @@ function translate() {
|
||||
};
|
||||
$('body').i18n();
|
||||
repairButtons();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user