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