Questions tagged [enter]

The ENTER/RETURN key on the keyboard.

On computer keyboards, the enter key in most cases causes a command line, window form, or dialog box to operate its default function. This is typically to finish an "entry" and begin the desired process, and is usually an alternative to pressing an OK button.

Source

Wikipedia

882 questions
12
votes
4 answers

Python Error: "AttributeError: __enter__"

So, I can't load my json file and I don't know why, can anyone explain what I'm doing wrong? async def give(msg, arg): if arg[0] == prefix + "dailycase": with open("commands/databases/cases.json", "r") as d: …
Caio Alexandre
  • 143
  • 1
  • 1
  • 4
12
votes
8 answers

Disable beep of enter and escape key

I want to disable the beep sound that I get when I press enter in a TextBox. My KeyDown event is: private void textBox_Zakljucak_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Tab)) { …
user1788654
  • 311
  • 2
  • 5
  • 13
12
votes
3 answers

Detect enter in input elements of a certain class

I need to detect when someone hits "enter" in text inputs with a specific class. My jQuery is as follows: $('input.large').keypress(function (e) { if(e.which ==13) console.log("pressed enter"); }); My HTML is something like…
user961627
  • 12,379
  • 42
  • 136
  • 210
12
votes
5 answers

Hit Enter key to Check or select checkbox

Newbie- I want to do 2 things with these checkboxes: Use TAB key to tab through options, this part works As I TAB through options, I want to hit ENTER key to select that check box, this part is NOT working Below is sample code. I am using the…
Steve42
  • 211
  • 2
  • 5
  • 10
11
votes
4 answers

Allow Enter key to login in asp.net?

I have a standard asp:login control: In Internet…
DisgruntledGoat
  • 70,219
  • 68
  • 205
  • 290
11
votes
10 answers

Trap the enter key, but not when choosing the browser's autocomplete suggestion

I have some textboxes on a page and I want to click a link when the user presses enter in any of them. I can easily trap the enter button using javascript (by looking for 13 in event.keyCode and event.which), but I hit an issue when the browser's…
teedyay
  • 23,293
  • 19
  • 66
  • 73
10
votes
3 answers

How do I use the Enter key as an event handler (javascript)?

im trying to make my own chat... so i have an input text field, the submit button, isn't even submit, its just a button.... so when the enter key is pressed, i need the value of the input field to appear in my textarea (which is readonly)... well…
Juan Veliz
  • 103
  • 1
  • 1
  • 4
10
votes
2 answers

Listen to ENTER key in Android

Here is my code: public class CaptureENTER extends Activity implements OnKeyListener{ /* on create and other stuff in here*/ @Override public boolean onKey(View v, int keyCode, KeyEvent event) { if ((event.getAction() ==…
Carlos Pereira
  • 1,914
  • 6
  • 24
  • 35
9
votes
2 answers

How to automatically hit Enter in bash script when asked?

I know that this question is answered many times, but I still can't figure out how to do it. Maybe it's because I don't know the correct keyword to search for. Using echo -ne '\n' | enter doesn't work. My code is: #!…
Ooker
  • 1,969
  • 4
  • 28
  • 58
9
votes
6 answers

HTML Automatic line-break doesn't work?

I declared width and margins but somehow my lines didn't get wrapped with an automatic line-break. edit: I found the cause. It's because there are no spaces between…
Luke
  • 2,350
  • 6
  • 26
  • 41
9
votes
4 answers

Press TAB and then ENTER key in Selenium WebDriver with Ruby

I am doing automated testing using Selenium WebDriver with Ruby. I need to click a button. I cannot get the button element by id or css or xpath as the button is transparent. I would like to use Tab and Enter key to press the button. I can use Tab…
AJJ
  • 3,570
  • 7
  • 43
  • 76
8
votes
1 answer

How do I programmatically press Enter?

I have a C# console program which starts calculator and simulates key presses. How do I programmatically press Enter? [DllImport("USER32.DLL", CharSet = CharSet.Unicode)] public static extern IntPtr FindWindow(string lpClassName, …
user3231442
  • 600
  • 1
  • 9
  • 25
8
votes
7 answers

Press Enter Key in Selenium RC with C#

How to press Enter using Selenium RC using C#? I am working with a SearchBox using Selenium. In which I have to type some name and I have to press Enter to search. There is no Submit button. So, I must use Enter. I tried something like…
Ranadheer Reddy
  • 4,202
  • 12
  • 55
  • 77
7
votes
2 answers

Form not submitting when there is more than one input text

This is a quite simple issue to describe. This was tested on Firefox (3.6), IE (8) and Chrome (8). Here is the file doesnotsubmit.html
When the focus is on one of the input and you press enter, nothing…
Karim
  • 71
  • 1
7
votes
4 answers

AngularJS - ng-keypress not working for enter event

In my project, ng-keypress is not working for Enter Key from all the places. From some places, it is working perfectly fine but from other places, it is working for all the keys except Enter Key. Here I'm calling a test() method on the…
Rakesh Burbure
  • 1,045
  • 12
  • 27
1 2
3
58 59