Is it possible to execute a keyboard shortcut with jquery.
Shortcut Ctrl+Shift+I which opens Google Chrome Inspect Element.
Tried: http://jsfiddle.net/r80nLhku/1/
            Asked
            
        
        
            Active
            
        
            Viewed 146 times
        
    0
            
            
         
    
    
        Mamun Sardar
        
- 2,679
- 4
- 36
- 44
- 
                    did you try http://www.w3schools.com/jquery/event_keypress.asp ? – ImAtWar Aug 07 '15 at 18:16
1 Answers
0
            You can't send arbitrary key presses to the window from JavaScript... It's a security issue. This would mean you could force any user to literally go to any site (and worse, ie. control their computer).
- 
                    thanks for the info. But what about with an extension? Can you help? – Mamun Sardar Aug 07 '15 at 18:38
- 
                    http://stackoverflow.com/questions/8668192/programmatically-triggering-ctrls for a very similar question. What do you mean by extension? A Chrome extension? – Shadowen Aug 07 '15 at 18:40
- 
                    
- 
                    Why would you ever want to do that instead of just hitting the hotkey yourself? – Shadowen Aug 07 '15 at 19:07
 
    