Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Javascript shortcut and global shortcuts

Started 3 weeks, 6 days ago by macveera
I want to configure ctrl+shift+z as a shortcut for an action in my page. But the key combination is already a global shortcut for my music player. Can i override the global shortcut or prevent the global shortcut action or just intimate the user that a global shortcut already exists for the key combination
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: JavaScript Development  JavaScript Development - forum profile
Total authors: 3 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Other posts in this thread:

KorRedDevil replied 3 weeks, 5 days ago
No way. Javascript is able to capture the keystrokes, but if the keystroke (or the combination of keystrokes) are allocated, by default, to the Operating System operations, javascript can not change their behaviour. Javascript is client-side language, it can not "touch" the OS. But probably you may alert the user about the fact that combination already does something else.

macveera replied 3 weeks, 5 days ago
Quote: Originally Posted by KorRedDevil But probably you may alert the user about the fact that combination already does something else. ok how do i do that?

s-p-n replied 3 weeks, 5 days ago
Create an alert('Sorry, we cannot offer you the functionality of using CTRL or SHIFT keys in this application. Reason being, JavaScript cannot access those keys due to the nature of this language and your Operating System. For all we know, you don't even <em>have</em> those keys.'). Lookie: http://www.htmlgoodies.com/beyond/javascript/artic le.php/3471141 http://www.jimprice.com/...

 

Top contributing authors

Name
Posts
macveera
2
user's latest post:
Javascript shortcut and global...
Published (2009-11-07 02:56:00)
Quote: Originally Posted by KorRedDevil But probably you may alert the user about the fact that combination already does something else. ok how do i do that?
KorRedDevil
1
user's latest post:
Javascript shortcut and global...
Published (2009-11-07 02:53:00)
No way. Javascript is able to capture the keystrokes, but if the keystroke (or the combination of keystrokes) are allocated, by default, to the Operating System operations, javascript can not change their behaviour. Javascript is client-side language, it can not &quot;touch&quot; the OS. But probably you may alert the user about the fact that combination already does something else.
s-p-n
1
user's latest post:
Javascript shortcut and global...
Published (2009-11-07 11:56:00)
Create an alert('Sorry, we cannot offer you the functionality of using CTRL or SHIFT keys in this application. Reason being, JavaScript cannot access those keys due to the nature of this language and your Operating System. For all we know, you don't even &lt;em&gt;have&lt;/em&gt; those keys.'). Lookie: http://www.htmlgoodies.com/beyond/javascript/article.php/3471141 http://www.jimprice.com/ascii-0-127.gif

Related threads on "Dev Shed Forums - Open Source web development":

Related threads on other sites:

Thread profile page for "Javascript shortcut and global shortcuts" on http://www.devshed.com. This report page is a snippet summary view from a single thread "Javascript shortcut and global shortcuts", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity