473,503 Members | 2,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keyboard event

Hello,

I am using asp.net 2.0 and I want to add keyboard shortcuts to my
application. For example if I hit ALT-A it will pop up a new window or
my other webform.

Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***
Sep 11 '07 #1
2 1562
"Claudia Fong" <cd********@yahoo.co.ukwrote in message
news:eQ**************@TK2MSFTNGP04.phx.gbl...
I am using asp.net 2.0 and I want to add keyboard shortcuts to my
application.
That's achieved through the accesskey attribute of certain HTML tags:
http://www.google.co.uk/search?sourc...HTML+accesskey

However, this is not guaranteed to be 100% cross-browser / cross-platform
compatible...
For example if I hit ALT-A it will pop up a new window or my other
webform.
Try to avoid popups if you can - many browsers block them by default, and
they can get really irritating...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 11 '07 #2
Ok,

I'm able to set up an access key to a link that I have in my webpage,
but it won't open that webpage.. only will open when I also press enter

the code below is what I have in my source code:

<A HREF="http://www.sapo.pt" ACCESSKEY="H"Home</A>

After I press ALT-H it will just "point" to the link.. I would like to
also click on the link

Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***
Sep 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3139
by: Ziv Forshtat | last post by:
Hi All, I'm in the process of implementing a virtual keypad: I have a wxFrame which contains a photo the keypad of some device, and I'm using it to enter special keywords into an editor window...
1
2414
by: Abdul Hafiz al-Muslim | last post by:
Hi, I am new to Python and still learning. I am looking for a way to change the keyboard output within Tkinter - for example, say I press "p" and I want to come out as "t". Could anyone point...
3
13050
by: Lachlan Hunt | last post by:
Hi, I've been looking up lots of documentation and trying to work out a cross-platform method of capturing a keyboard event and working out which key was pressed. From what I can find, there...
0
5756
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
5
21020
by: nx-2000 | last post by:
I've got a very large C# forms app and now that its being used in bigger environments we're getting a steady stream of "why does it do this?" problems. The most nagging of which right now is that...
4
4137
by: Melson | last post by:
Hi Can anyone help. I would like to replace the keys on the PC keyboard. For example, when I press Q button it displays A on the screen in any programs (MS Words, Note, Lotus....). And also when...
0
1913
by: luc.saffre | last post by:
Hello, I thought that I should ask here for comments on a blog entry that I wrote some weeks ago. I am sure that other people have been thinking about this, but I didn't yet find them. The...
4
7765
by: jonathandrott | last post by:
Hi, i'm kinda new to vb.net and i'm trying to make an on screen keyboard to use with a touch screen. how do i get it to print a letter on the screen when the button is pressed in the textbox that...
12
4237
by: =?ISO-8859-1?Q?Joaqu=EDn_Zuazo?= | last post by:
I'm trying to find what character was pressed, using an accent with a dead letter, e.g an á, on an input box. I have made an small program to check the keyboard events keydown, keypress and...
13
8716
by: andypb123 | last post by:
Hello, The onchange event fires in IE6 in a SELECT element when scrolling through the list with the up and down arrows on the keyboard. In Firefox it only fires after you hit the enter key, which...
0
7070
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
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.