mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Use keydown for better hotkey response
This commit is contained in:
parent
20b5ec28c7
commit
e2f0339ef7
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
module.exports = function(winamp) {
|
||||
var keylog = [];
|
||||
var trigger = [78, 85, 76, 27, 76, 27, 83, 79, 70, 84];
|
||||
document.addEventListener('keyup', function(e){
|
||||
document.addEventListener('keydown', function(e){
|
||||
if (e.ctrlKey) { // Is CTRL depressed?
|
||||
switch (e.keyCode) {
|
||||
case 68: winamp.toggleDoubledMode(); break; // CTRL+D
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue