Create a gist now

Instantly share code, notes, and snippets.

GM_registerMenuCommand() accelerator tester
// ==UserScript==
// @name GM_registerMenuCommand() accelerator tester
// @namespace
// @description A flexible test script for examining if/how GM_rmc's accelerator keys work
// @include about:blank#GM_rmc
// ==/UserScript==
<td id="modifiers">
<input type="checkbox" value="shift"> Shift<br>
<input type="checkbox" value="alt"> alt<br>
<input type="checkbox" value="meta"> meta<br>
<input type="checkbox" value="control"> Control<br>
<input type="checkbox" value="accel"> accel<br>
<input type="checkbox" value="access"> access<br>
<input type="checkbox" value="any"> any<br>
<td>Accelerator key:</td>
<td><input type="text" size="1" maxlength="1" id="accelerator"></td>
<td><button id="register">Register this menu command</button></td>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment