forked from cory/tildefriends
		
	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:
		@@ -31,21 +31,6 @@ function enter(event) {
 | 
				
			|||||||
			input.value = gCommandHistory.shift();
 | 
								input.value = gCommandHistory.shift();
 | 
				
			||||||
			event.preventDefault();
 | 
								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 : "";
 | 
						return window.location.hash != "#" ? window.location.hash : "";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function storeTarget(target) {
 | 
					 | 
				
			||||||
	document.getElementById("target").innerText = target || "";
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
function split(container, children) {
 | 
					function split(container, children) {
 | 
				
			||||||
	if (container) {
 | 
						if (container) {
 | 
				
			||||||
		while (container.firstChild) {
 | 
							while (container.firstChild) {
 | 
				
			||||||
@@ -322,9 +303,7 @@ function setErrorMessage(message) {
 | 
				
			|||||||
function send(command) {
 | 
					function send(command) {
 | 
				
			||||||
	var value = command;
 | 
						var value = command;
 | 
				
			||||||
	if (!command) {
 | 
						if (!command) {
 | 
				
			||||||
		var target = document.getElementById("target").innerText;
 | 
							value = document.getElementById("input").value;
 | 
				
			||||||
		var prefix = target ? target + " " : "";
 | 
					 | 
				
			||||||
		value = prefix + document.getElementById("input").value;
 | 
					 | 
				
			||||||
		document.getElementById("input").value = "";
 | 
							document.getElementById("input").value = "";
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	try {
 | 
						try {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,6 @@
 | 
				
			|||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div id="terminals" class="vbox"><div id="terminal_" class="terminal" style="flex: 1 1"></div></div>
 | 
							<div id="terminals" class="vbox"><div id="terminal_" class="terminal" style="flex: 1 1"></div></div>
 | 
				
			||||||
		<div class="input">
 | 
							<div class="input">
 | 
				
			||||||
			<span id="target"></span>
 | 
					 | 
				
			||||||
			<span id="prompt">></span>
 | 
								<span id="prompt">></span>
 | 
				
			||||||
			<input type='text' id='input'>
 | 
								<input type='text' id='input'>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user