Keyboard Navigation for Chrome / options.html

lornajane cebc7ae 

<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.");
	localStorage["hintchars"] = inputTable.value;

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


<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>Note: Options don't work yet due to a limitation of the extension system.</p>

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

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
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.