Mapping Arrow Keys To Control Dashboard Panels
This script allows you to map the left arrow key to control the left dashboard panel, and also maps the right arrow key to control the right dashboard panel. Also using this approach, you can map any keyboard key to other types of functionality.
This script needs to be added to a dashboard script to work.
//check to see if left or right arrow is clicked to show/hide window panes
$(document).keydown(function(e) {
switch(e.which) {
case 37: // left
$('div.trillapser-container', $('div#prism-leftview')).click();
break;
case 39: // right
$('div.trillapser-container', $('div#prism-rightview')).click();
break;
default:
return;
}
});

Updated 03-02-2023
intapiuser
Admin
Joined December 15, 2022