473,785 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I recognize that the key i pressed in my keyboard is an ENTER key?

Exequiel
288 Contributor
Hello friends, i want to know how to detect the enter key in my keyboard, if i pressed the enter key it must alert("You pressed enter key");
any reply are gratefully appreciated. . :) thanks. . :)
Aug 14 '13 #1
3 1351
Dormilich
8,658 Recognized Expert Moderator Expert
check out the keyCode property.
Aug 14 '13 #2
Exequiel
288 Contributor
@Dormilich. Wow!, thank you so much for that link. :)
Aug 14 '13 #3
Dormilich
8,658 Recognized Expert Moderator Expert
no problem.
Aug 14 '13 #4

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

Similar topics

3
1770
by: myname | last post by:
How can I understand when auser of the web page pres the reload button of the web browaser or when he press enter in the line where the internet address is inserted? I'd like capture this event to manage it. Thanks, Marco
6
14711
by: Terry | last post by:
I have a form which is displayed in Datasheet View and would prefer it if, when entering data, I could use the keyboard as I would when entering data into a Datasheet. Is it possible when entering data into a form to get the cursor to move to the next control after I press the Enter key? Terry
3
6311
by: Susan | last post by:
AccessXP When I use the wizard to create a form, all the textboxes are created with the Enter Key Behaviour of "New Line In Field". When I create the form manually the Enter Key Behaviour is "Default". "New Line In Field" is undesirable because when I go to enter data in the field and then ptess <Enter>, rather than go to the next field, a carriage return is entered in the textbox and as the property says, Access goes to a new line in...
1
4929
by: Kimochi | last post by:
Hi, i want to ask view questions 1.when i press Enter button on the textbox how do i trigger an event? 2.How do i use shortcut key for example ctrl+s to call certain function.
0
1026
by: The Crow | last post by:
i want to send to outside of my application a keypress. its no matter the key is sent to a specific process but it would be. and how can i create global shortcuts? (windows xp)
1
1429
by: David Hearn | last post by:
I have a javascript function that is fired on the KeyDown event of a textbox. I am adding the attribute to the textbox at page load to run this javascript function. The javascript runs as expected and the text box that is specified in the javascript gets the focus set to it, but my problem is that the default button on the form is being pressed also so once the textbox gets the focus, you barely see it before the page redirects. I want...
8
10630
by: Dan Holmes | last post by:
I am receiving data from the stream of a socket. I am trying to determine if the user pressed the Enter key. The buffer has 2 non-zero bytes when the user presses enter: 13 and 10. If i convert that to ASCII i get \r\n. I would like to have a value i could compare to ConsoleKeys.Enter if possible. Anyone know how to do that? int bytesRead = ns.EndRead(ar);
24
8447
by: MichaelK | last post by:
Who knows how to prevent submitting a form on the press Enter button before all fields on the form are filled up. People just enter the first field hit Enter and it submits the form and doing validation, of course flushing with the bunch of messages because rest of the fields are empty. I remember I had some pages where wrote the code to go on the next field when pressed the Enter button (Tab like), because it didn't go anywhere at all....
4
6932
by: Rojo | last post by:
Hi I have a small database program in VB6, There is a form that has a command button that is labled "Search" and a text box for data base catalogue number user input. My problem is that when the keyboard enter key is pressed nothing happens, you allways have to click the search button before the batabase will find the number entered in the text box I think I have overlooked something simple, most likely in the properties somesware....Can...
7
3144
by: ManWithNoName | last post by:
If you have a form with x input and two or more buttons, how do you control which button has preceding when the user hits the keyboard key "enter"? Currently it seems to be determined in a hierarchical manner. E.g. <form>
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8974
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.