10 lines
165 B
JavaScript
10 lines
165 B
JavaScript
|
|
document.onkeypress = function(e) {
|
|
switch (e.keyCode || e.which) {
|
|
case 81: // Q
|
|
case 113: // q
|
|
window.close();
|
|
break;
|
|
}
|
|
};
|