473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

is it possible to capture control+alt+<any key>

pankajkmeena
is it possible to capture control+alt+<any key> in javascript
Dec 28 '07 #1
6 3538
gits
5,390 Expert Mod 4TB
that should be possible ... have a look here ... and come back in case you have problems with implementing it ... post the code you have tried ...

kind regards
Dec 28 '07 #2
that should be possible ... have a look here ... and come back in case you have problems with implementing it ... post the code you have tried ...

kind regards
thankx for ur help but i want ot capture all three keys at a time like in VB not indvidually. for example i want ot show alert box whe a user press CTRL+ALT+Z key (all 3 key) at a time.
Dec 29 '07 #3
vee10
141 100+
Hi,

Plz check the below link and try to check the demo and then download the example

http://www.openjs.com/scripts/events...ard_shortcuts/
Dec 29 '07 #4
gits
5,390 Expert Mod 4TB
hi ...

simply combine the events ... let me give you an example for alt+ctrl+tab ... tested on FF Mac, may be it will not work with IE without adaptions, since IE uses a global event object ... but have a look at the example first:

[HTML]<html>
<head>
<script type="text/javascript">
function handle_keypress(e) {
var codes = { 9: 'TAB' };
if (e.altKey && e.ctrlKey && e.keyCode in codes) {
alert('pressed ALT + CTRL + ' + codes[e.keyCode]);
}
}
</script>
</head>
<body onkeydown="handle_keypress(event);">
testpage
</body>
</html>
[/HTML]
kind regards
Dec 29 '07 #5
hi ...

simply combine the events ... let me give you an example for alt+ctrl+tab ... tested on FF Mac, may be it will not work with IE without adaptions, since IE uses a global event object ... but have a look at the example first:

[HTML]<html>
<head>
<script type="text/javascript">
function handle_keypress(e) {
var codes = { 9: 'TAB' };
if (e.altKey && e.ctrlKey && e.keyCode in codes) {
alert('pressed ALT + CTRL + ' + codes[e.keyCode]);
}
}
</script>
</head>
<body onkeydown="handle_keypress(event);">
testpage
</body>
</html>
[/HTML]
kind regards
thankx solution provided by u works
Jan 11 '08 #6
gits
5,390 Expert Mod 4TB
hi :) ... glad to hear that ... post back to the forum anytime you have more questions

kind regards
Jan 12 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
7
by: mitch gart | last post by:
Is it possible to insert newlines, or some other character, into <title> or <alt> to get the effect of a tooltip, where the page author controls the line breaks? If yes, could somebody send an...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
3
by: Henry Johnson | last post by:
Okay - I'm spinning my wheels on this one... can someone help me figure out how to programmatically populate a table cell as follows (from C# code-behind)? I've tried using a Literal control in the...
4
by: Jon Slaughter | last post by:
I have a captcha system going and for some reason when I use <?php $s = ""; for($i = 0; $i < 10; $i++) { $s = $s.rand(0,9); } $_SESSION = $s; $fn = '/Login/Register/Captcha.php'; echo '<img...
1
pankajkmeena
by: pankajkmeena | last post by:
is it possible to capture control+alt+<any key> in PHP
6
by: capricious | last post by:
Is it possible, so that when you do multiple <UL>'s to control how deep the UL's are marked? For example, it would defaultly look like this with multiple ULs and LIs: -- Code : Main...
2
by: bgold12 | last post by:
Are there any non-semantic (i.e. actual) differences between the <p> tag and the <divtag?
2
by: Bobby Edward | last post by:
I have a subdirectory with an aspx page that references a master file located in the root. In the master file template I reference a logo/image that is in <root>/resources... <img alt="logo"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.