From b3534525f75470562cc395019cc6a80799d87706 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 5 Jun 2016 13:21:00 +0000 Subject: [PATCH] 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 --- core/client.js | 23 +---------------------- core/index.html | 1 - 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/core/client.js b/core/client.js index 83bb2ef4..6f57ab88 100644 --- a/core/client.js +++ b/core/client.js @@ -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 { diff --git a/core/index.html b/core/index.html index 97576048..de771710 100644 --- a/core/index.html +++ b/core/index.html @@ -21,7 +21,6 @@
- >