function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amit4SFDCAmit4SFDC 

How to open a visual force page on key press on the keyboard

I want to run a visualforce page on certain key press . Is there any way to do Keyboard intratction with visualforce. 

 

or

 

Can we intract with tab using keyboard ? Open a tab using key like ALT + A.

 

Val ValinoVal Valino

You could try using jQuery. Just target the whole page for the key press.

 

http://api.jquery.com/keypress/

 

http://developer.force.com/cookbook/recipe/using-jquery-in-a-visualforce-page

Amit4SFDCAmit4SFDC

I agree with your solution.but sorry we could not go to specific page.We want to use keyboard shortcut to run visualforce page from any page . do you have any idea . which part of saleforce User interface render on each page where we put out jquery . 

Sachi7Sachi7

Try including jQuery into one of left side bar "Homepage component" (html). It is available throughout the application except for the Reports, Dashboards,Setup pages and any visualforce pages that sidebar switched off..