Remove the terminal target / semicolon behavior. It can be implemented app-side if I want it again.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3240 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
04789675ea
commit
b3534525f7
@ -31,21 +31,6 @@ function enter(event) {
|
||||
input.value = gCommandHistory.shift();
|
||||
event.preventDefault();
|
||||
}
|
||||
} else if (event.keyCode == 186
|
||||
&& !event.metaKey
|
||||
&& !event.altKey
|
||||
&& !event.ctrlKey
|
||||
&& !event.shiftKey) {
|
||||
var input = document.getElementById("input");
|
||||
var value = input.value;
|
||||
if (value && value[value.length - 1] == '\\') {
|
||||
input.value = value.substring(0, value.length - 1) + ";";
|
||||
event.preventDefault();
|
||||
} else {
|
||||
storeTarget(value);
|
||||
input.value = "";
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,10 +53,6 @@ function hash() {
|
||||
return window.location.hash != "#" ? window.location.hash : "";
|
||||
}
|
||||
|
||||
function storeTarget(target) {
|
||||
document.getElementById("target").innerText = target || "";
|
||||
}
|
||||
|
||||
function split(container, children) {
|
||||
if (container) {
|
||||
while (container.firstChild) {
|
||||
@ -322,9 +303,7 @@ function setErrorMessage(message) {
|
||||
function send(command) {
|
||||
var value = command;
|
||||
if (!command) {
|
||||
var target = document.getElementById("target").innerText;
|
||||
var prefix = target ? target + " " : "";
|
||||
value = prefix + document.getElementById("input").value;
|
||||
value = document.getElementById("input").value;
|
||||
document.getElementById("input").value = "";
|
||||
}
|
||||
try {
|
||||
|
@ -21,7 +21,6 @@
|
||||
</div>
|
||||
<div id="terminals" class="vbox"><div id="terminal_" class="terminal" style="flex: 1 1"></div></div>
|
||||
<div class="input">
|
||||
<span id="target"></span>
|
||||
<span id="prompt">></span>
|
||||
<input type='text' id='input'>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user