Paste button

This commit is contained in:
2017-09-06 17:27:33 +02:00
parent 3f198f8360
commit a78830f805
4 changed files with 16 additions and 2 deletions
+7 -1
View File
@@ -25,7 +25,8 @@
<textarea id="softkb-input" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
<nav id="term-nav">
<a href="#" onclick="toggleSoftKb(true); return false" class="icn-keyboard mq-tablet-max"></a><!--
<a href="#" onclick="toggleSoftKb(true);return false" class="icn-keyboard mq-tablet-max"></a><!--
--><a href="#" onclick="termPaste();return false"><?= tr('term_nav.paste') ?></a><!--
--><a href="<?= url('cfg_term') ?>" class="x-term-conf-btn"><?= tr('term_nav.config') ?></a><!--
--><a href="<?= url('cfg_wifi') ?>" class="x-term-conf-btn"><?= tr('term_nav.wifi') ?></a><!--
--><a href="<?= url('help') ?>" class="x-term-conf-btn"><?= tr('term_nav.help') ?></a><!--
@@ -59,4 +60,9 @@
if (yes) i.focus();
else i.blur();
}
function termPaste() {
var t = prompt(<?= je(tr('term_nav.paste_prompt')) ?>);
if (t !== null && t.length) Input.sendString(t);
}
</script>