Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Thinking about configurable keys

  • Loading branch information...
commit 1a2eaf0f5fd2301b65987cce820bf40d1312e898 1 parent aa782b1
@stsquad authored
Showing with 27 additions and 4 deletions.
  1. +19 −4 options.html
  2. +8 −0 options.js
View
23 options.html
@@ -25,13 +25,28 @@
Other edit servers may well exist, please let me know at the project web site.
<p>
<hr>
+
Edit Server @ 127.0.0.1:
-<input id="port" type="text" name="port"><em>default: <code>9292</code></em><br>
-Show "edit" button next to textarea: <input id="editbutton" type="checkbox" name="editbutton"><br>
-Allow double click on textarea to invoke editor: <input id="dblclick" type="checkbox" name="dblclick"><br>
-Enable Alt-E Keyboard shortcut to invoke editor: <input id="keyshort" type="checkbox" name="keyshort"><br>
+<input id="port" type="text" name="port">
+<em>default: <code>9292</code></em>
+<br>
+
+Show "edit" button next to textarea:
+<input id="editbutton" type="checkbox" name="editbutton">
+<br>
+
+Allow double click on textarea to invoke editor:
+<input id="dblclick" type="checkbox" name="dblclick">
+<br>
+
+Enable keyboard shortcut to invoke editor:
+<input id="keyshort" type="checkbox" name="keyshort"/>
+<input id="keystroke" type="textbox"disabled="true" value="current keystroke"/>
+<br>
+
<div id="status"></div>
<button onclick="save_options()">Save</button>
+
<hr>
<button onclick="test_server()">Test Edit Server</button>
<div id="server_status"></div>
View
8 options.js
@@ -39,6 +39,14 @@ function restore_options() {
port = 9292;
}
document.getElementById("port").value = port;
+ var keymod = localStorage["keymod"];
+ if (!keymod) {
+ keymod =
+ }
+ var keystroke = localStorage["keystroke"];
+ if (!keystroke) {
+
+ }
loadCheckbox("editbutton", "enable_button", true);
loadCheckbox("dblclick", "enable_dblclick", false);
loadCheckbox("keyshort", "enable_keys", false);
Please sign in to comment.
Something went wrong with that request. Please try again.