Added manual key send to the remote keyboard
This commit is contained in:
1 parent
b036aa5d69
commit
0cdb537424
4 files changed
+32
-6
No files matched your search
@@ -319,8 +319,13 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<fieldset data-role="controlgroup" data-type="horizontal">
|
||||
<input type="checkbox" name="keyboardAutoSend" id="keyboardAutoSend" />
|
||||
<label data-i18n="keyboardAutoSend" for="keyboardAutoSend"></label>
|
||||
</fieldset>
|
||||
<label for="keyboardButtonKeys" data-i18n="keyboardButtonKeys"></label>
|
||||
<input type="text" id="keyboardButtonKeys" data-mini="true">
|
||||
<a data-role="button" id="keyboardButtonSend" data-i18n="keyboardButtonSend"></a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /content -->
|
||||
|
||||
@@ -641,7 +641,6 @@
|
||||
|
||||
var KeyboardPageHandler = function () {
|
||||
var init = function () {
|
||||
|
||||
initKeyboardPageHandler();
|
||||
};
|
||||
|
||||
@@ -694,15 +693,34 @@
|
||||
});
|
||||
});
|
||||
|
||||
$("#keyboardAutoSend").change(function () {
|
||||
if ($('#keyboardAutoSend').is(':checked')) {
|
||||
$('#keyboardButtonSend').hide();
|
||||
} else {
|
||||
$('#keyboardButtonSend').show();
|
||||
}
|
||||
});
|
||||
|
||||
$('#keyboardButtonSend').click(function () {
|
||||
sendKeyboardText();
|
||||
});
|
||||
|
||||
$('#keyboardButtonKeys').keyup(function (e) {
|
||||
if (!$('#keyboardAutoSend').is(':checked') && e.keyCode != 13) {
|
||||
return;
|
||||
}
|
||||
sendKeyboardText();
|
||||
});
|
||||
|
||||
function sendKeyboardText() {
|
||||
var text = $('#keyboardButtonKeys')[0].value;
|
||||
|
||||
$('#keyboardButtonKeys')[0].value = "";
|
||||
if (text.length <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('#keyboardButtonKeys')[0].value = "";
|
||||
$('#keyboardButtonKeys').first().focus();
|
||||
|
||||
/* if ($('#keyboardButtonFunct').is(':checked')) {
|
||||
$('#keyboardButtonKeys')[0].value = text.splice(1) + $('#keyboardButtonKeys')[0].value;
|
||||
@@ -726,8 +744,7 @@
|
||||
}).fail(function () {
|
||||
$('#keyboardButtonKeys')[0].value = text + $('#keyboardButtonKeys')[0].value;
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
init();
|
||||
|
||||
@@ -80,5 +80,7 @@
|
||||
"keyboardButtonShift": "Umschalt",
|
||||
"keyboardButtonAlt": "Alt",
|
||||
"keyboardButtonCtrl": "Steuerung",
|
||||
"keyboardButtonBackspace": "Rücktaste"
|
||||
"keyboardButtonBackspace": "Rücktaste",
|
||||
"keyboardAutoSend": "Tasten autom. senden",
|
||||
"keyboardButtonSend": "Senden"
|
||||
}
|
||||
@@ -80,5 +80,7 @@
|
||||
"keyboardButtonShift": "Shift",
|
||||
"keyboardButtonAlt": "Alt",
|
||||
"keyboardButtonCtrl": "Control",
|
||||
"keyboardButtonBackspace": "Backspace"
|
||||
"keyboardButtonBackspace": "Backspace",
|
||||
"keyboardAutoSend": "Auto send keys",
|
||||
"keyboardButtonSend": "Send"
|
||||
}
|
||||
Reference in new issue
Block a user