Skip to content

Commit f2d3b2f

Browse files
author
Chris K
committed
Added 'cmd' shortcuts.
1 parent b79dff0 commit f2d3b2f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test-scripts/test-scripts/keyidentifier.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
document.getElementsByTagName('p')[0].textContent = shortcut;
2222
var pre = document.getElementsByTagName('pre')[0];
23-
23+
2424
var pos = ('\n' + pre.textContent + '\n').indexOf('\n' + shortcut + '\n');
2525
var selection = getSelection();
2626
var range = document.createRange();
@@ -37,15 +37,16 @@
3737

3838
window.onload = function()
3939
{
40-
var sc =
40+
var sc =
4141
[
42-
"ctrl a", "ctrl b", "shift ctrl a",
42+
"ctrl a", "ctrl b", "shift ctrl a",
4343
"up","down","left","right",
4444
"enter","ctrl enter",
4545
"shift tab","tab", "ctrl tab",
4646
"escape", "shift escape",
4747
"a", "(", ")", "s", "f6", ".", "[",
48-
"ctrl p", "page-down", "page-up"
48+
"ctrl p", "page-down", "page-up",
49+
"cmd a", "cmd k"
4950
];
5051
var ki = new KeyIdentifier(onshortcut, window.chrome ? "chrome" : window.opera ?"opera" : "firefox");
5152
document.getElementsByTagName('pre')[0].textContent = sc.join('\n');

0 commit comments

Comments
 (0)