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
7
votes
4 answers

Accessing Scope onExit of Angular-UI-Router?

I'am looking for the following possibility: $stateProvider.state('user', angularAMD.route({ url: '/user/:id', templateUrl: 'views/user.html', controllerUrl: 'views/user', controller: 'UserCtrl', onExit:…
user2227400
7
votes
4 answers

How to press "Enter" in Selenium WebDriver (Nunit Test Case) written in C#?

I am trying to create a automation framework with nunit + Selenium + c# Our webadmin is based on Devexpress framework hence I can't click button by it's "ID" or atleast I dont know how to. The subtitute to this is simply pressing "Enter" button. I…
RON12345
  • 123
  • 1
  • 3
  • 10
7
votes
3 answers

Bash: Check if enter was pressed

How can I check in Bash if the Enter key has been pressed? I'm using the read command: read -p "Please press ENTER" var
intelinside
  • 415
  • 1
  • 6
  • 6
6
votes
4 answers

Detect when link is activated - either by click or tab and enter

Just wondering if anyone knows of a way that wiring up jquery to run a function for when a user clicks on a link or tabs to a link and hits enter. I want to intercept that activation of a link and perform an action before the page is changed, but I…
vdhant
  • 2,218
  • 4
  • 24
  • 28
6
votes
2 answers

Keep focus on textbox after pressing enter

How can I keep the focus in a textbox after pressing enter in a VBA form? This code adds the text to a Listbox and I want to keep the focus on the textbox to get ready to receive another item. When I click in the button Add, it adds the text to the…
rubenploneda
  • 63
  • 1
  • 1
  • 3
6
votes
2 answers

How to trigger button by pressing enter in Angular 9

Is it possible to trigger my "Add" button by pressing enter on the keyboard? //// This is the last div in the form, for the third gap:
6
votes
1 answer

When using d3.js why must I call selectAll after select when appending new elements to an entry selection?

Suppose we have a svg element with no child nodes: Suppose we also have an array of data: var data = [10,20,30,40,50]; This code properly append new rect elements to the svg element. …
eric.mcgregor
  • 3,507
  • 2
  • 16
  • 16
6
votes
1 answer

Vim shows "Press ENTER or type command to continue” when start

VIM starts with a message "Press ENTER or type command to continue", it happens for VIM, but not GVIM, GVIM starts without showing "Press ENTER or type command to continue”. The Vundle settings in my .vimrc file, OS is windows…
Pan Peng
  • 61
  • 1
  • 4
6
votes
5 answers

Quill.js: How to prevent newline entry on Enter to submit the input?

The problem: I'm trying to create a Rich-Text Inline content-editable element with Quill.js. I'm having a hard time figuring out how to submit the body without the unnecessary newline added by the enter trigger which I want to use to submit the…
Adam Halasz
  • 57,421
  • 66
  • 149
  • 213
6
votes
0 answers

Alt+Enter not accepting IntelliJ suggestions

After I typed "@Test" (without the quotes) and then hit Enter, IntelliJ suggested adding the "import org.junit.Test;" statement by pressing Alt + Enter. However, every time I tried to do this, IntelliJ presented me with a "Generate" menu instead of…
Ted Finch
  • 61
  • 1
  • 4
6
votes
5 answers

How do you get Python to detect for no input

I'm new to coding in python and I was filling out some code that required a number of inputs. One thing it asked for was for the program to perform an action if the user pressed the enter key and did not type in any input. My question is how you…
user3495234
  • 147
  • 1
  • 2
  • 10
6
votes
1 answer

Exiting while loop by pressing enter without blocking. How can I improve this method?

So I've been doing a little bit of reading up on how to exit a while loop by the user pressing the enter key and I've come up with the following: import sys, select, os switch = 1 i = 1 while switch == 1: os.system('cls' if os.name == 'nt' else…
user3394391
  • 487
  • 6
  • 15
6
votes
3 answers

Codeception pressKey ENTER does not work

I am not familiar with codeception. I am trying to insert a text in an input field and press the ENTER button. $I->fillField('#token-input-yw1', 'Some string'); $I->pressKey('#token-input-yw1', 13); The text is entered but the enter key is not…
buerma
  • 73
  • 1
  • 1
  • 5
6
votes
6 answers

Java Editable JCombobox Keylistener event for Enter key

I have editable JCombobox and I added keylistener for combobox editor component. When user press 'Enter key' and if there is no text on the editable combobox I need to display message box using JOptinoPane. I have done necessary code in keyrelease…
Joe
  • 365
  • 2
  • 9
  • 24
5
votes
2 answers

Shift + Enter vs Enter in console

I am trying to catch all characters that I input via my stdin stream except EOF. I want to input a multi-line text: each line with \n at the end. int getline(char s[]) { printf("Call-getline()\n"); int c; int idx=0; …
Cătălina Sîrbu
  • 1,253
  • 9
  • 30