mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2024-12-23 07:26:11 +00:00
Feature: Add page up and page down to change page
This commit is contained in:
parent
33c227a5a4
commit
dbbf5ff718
@ -30,6 +30,22 @@ window.onwheel = function(ev){
|
||||
}
|
||||
}
|
||||
}
|
||||
window.addEventListener('keyup', function(e){
|
||||
switch(e.key){
|
||||
case 'PageDown':
|
||||
if(dial.page < dial.maxpage){
|
||||
dial.page += 1;
|
||||
dial.populateGrid();
|
||||
}
|
||||
break;
|
||||
case 'PageUp':
|
||||
if(dial.page > 1){
|
||||
dial.page -= 1;
|
||||
dial.populateGrid();
|
||||
}
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user