Keyboard Navigation for Chrome / options.html

<html>
<head><title>Keyboard Navigation Options</title></head>
<script type="text/javascript">

// Saves options to localStorage.
function save_options() {
	var table = localStorage["hintchars"];
	var inputTable = document.getElementById("hintchars");

	if (inputTable.value.length == 0 || inputTable.value.length > 36) {
		alert("Please enter up to 36 hint characters.");
		return;
	}
	localStorage["hintchars"] = inputTable.value;
}

// Restores select box state to saved value from localStorage.
function restore_options() {
  var table = localStorage["hintchars"];
  if (!table) {
    return;
  }
  
  var inputTable = document.getElementById("hintchars");
  inputTable.value = table;
}

</script>

<body onload="restore_options()">
<h1>Keyboard Navigation Options</h1>
<p>Hint characters: <input type="text" id="hintchars" value="ABCDEFGHIJKLMNOPQRSTUVWXYZ" />
<br>(Enter up to 36 characters that will be used in the hints.)
</p>
<p>Note: Options don't work yet due to a limitation of the extension system.</p>

<p>
<button onclick="save_options()">Save</button>
</p>

</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.