| | |
Ctrl+t?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
That seems to work for when the user presses any key. What I'm going for is a specific event that is a combination of the CTRL key with the letter T.
Here's what I have so far:
I'm just not sure how to express the combination of the CTRL press and the letter T press together.
Thanks!
Here's what I have so far:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function doSomething() { // The function code goes here } event.ctrlKey("t") { doSomething; }
I'm just not sure how to express the combination of the CTRL press and the letter T press together.
Thanks!
Last edited by Tom Tolleson; Feb 19th, 2008 at 4:36 pm.
Hi
evenif u will acheive this you will have problem, coz browser will also do some function in this case, like Mozilla will start new tab.
so try some thing else.
Why you want to do this, probably we can suggest some thing different.
evenif u will acheive this you will have problem, coz browser will also do some function in this case, like Mozilla will start new tab.
so try some thing else.
Why you want to do this, probably we can suggest some thing different.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
Thanks for the reply.
I'm making this for an internal website (intranet) and it only needs to work in Internet Explorer.
I want the user to be able to pull up a pop-up window in which to write. But I cannot have a button on the webpage to activate it. I have to follow a strict design guideline.
Thanks again!
I'm making this for an internal website (intranet) and it only needs to work in Internet Explorer.
I want the user to be able to pull up a pop-up window in which to write. But I cannot have a button on the webpage to activate it. I have to follow a strict design guideline.
Thanks again!
•
•
•
•
it only needs to work in Internet Explorer.
when you will press ctrl+t(or any other combination) it will return you perticular keyCode using which you can identify the key combination.
in IE you can capture keyCode using window.event.keyCode
use document.onkeypress to capture keypress event on whole document.
see this also.
hope this will solve your problem.
following example may help you:
html Syntax (Toggle Plain Text)
<html> <head> <script type="text/javascript"> document.onkeypress=function() { alert(window.event.keyCode); } </script> </head> </body> this example will work in IE 6 </body> </html>
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
good i knew that, but i wanted you to try...any way nice job
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
![]() |
Similar Threads
- How to activate "Ctrl - Alt - Del" at logon? (Windows NT / 2000 / XP)
- ctrl+alt+del (Windows NT / 2000 / XP)
- disabling ctrl c interrupts (C)
- hijack log help (Viruses, Spyware and other Nasties)
- When I press CTRL ALT DEL... (Windows NT / 2000 / XP)
- Use Ctrl+Alt+Del Without Pushing All the Buttons (Windows tips 'n' tweaks)
- HELP! No Advanced to enable/disable CTRL (Windows NT / 2000 / XP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: drop down menu going behind flash element please help
- Next Thread: insert a dev tag with in javascript
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select session shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





