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
-3
votes
1 answer

Perform an action when the enter key is pressed

I'm making a Chrome Extension that acts as a task list. You can type in any task you want (ex. Buy eggs) and add it to your list. I wanted to allow the user to type in the task and press the "Enter" key to add it to the list. However, I saw that…
Aurora123
  • 135
  • 3
  • 13
-3
votes
1 answer

Why the result differs when I press enter at the end of a sentence?

Here is my first program #include #include using namespace std; int main() { int a; string s; double d; while(cin >> a >> s >> d) cout << a << s << d; return 0; } When I input some simple data and…
-3
votes
1 answer

Jquery Script won't click a button

I use this script to trigger button click upon keyup event inside the textbox, but it fails to do what is required: $("#id_of_textbox").keyup(function(event){ if(event.keyCode == 13){ $("#id_of_button").click(); } });
Kallus
  • 1
  • 3
-3
votes
1 answer

Cannot enter text in text fields on facebook on safari

I cannot enter text in neither of the edit fields on my facebook site using Safari on Mac. Earlier it has worked. How can I resolve this? Facebook doesn't offer any support for not working things.
-3
votes
1 answer

Is Computer guess equal vs user thinking about? With Java

I must ask the user to think of an integer between 1 and 1000. They do not type this number into the computer they just think of it. - This program will make a random number. - The user must indicate if the guess is too high, too low or correct…
Mehrdad
  • 41
  • 1
  • 1
  • 4
-3
votes
3 answers

emulate ENTER in .txt

Can someone please help in adding a command for enter in a .txt file to emulate enter. Example: 12345enter548793enter..... where an entry will be a number followed by enter to next field where the next number will be inserted etc.. so it will look…
gary
  • 1
  • 1
-4
votes
2 answers

C++: How to put multiple lines on std::string data("here");

I need to write a .batch file; how can I insert multiple lines? See: std::string data(""); #include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop…
Lorenzo
  • 1
  • 1
-4
votes
1 answer

PHP - Show result when writing

I have a form:
And when the user clicks on the submit button, the page gets the fields' details…
Luis Parker
  • 131
  • 2
  • 2
  • 8
-5
votes
1 answer

React Synthetic Event: How to capture if Enter key is pressed?

Why does the event passed below retain 'event.target' value but not 'event.code'? import React, { useState, useEffect } from 'react'; import moment from 'moment'; import { subscribeToTimer } from './api'; import './App.css'; function App() { …
Amith Raravi
  • 235
  • 3
  • 18
-5
votes
1 answer

Press enter to send message to chat

i got a template site when i bought a package and it has a built in chat function, however you need to press a "send" button each time to send chat messages, this is the script used, i guess it is kinda easy to do it but in not good at scripting…
Wheatlorz
  • 1
  • 1
-7
votes
3 answers

how to include "enter key" in python

import subprocess path = '/home/test/net.keystore' text = subprocess.Popen(['keytool', '-list', '-v', '-keystore', path], stdout=subprocess.PIPE, stderr=subprocess.PIPE) file = text.stdout.read().decode().splitlines() print file through…
VJG
  • 21
  • 1
  • 1
  • 6
-9
votes
1 answer

how to take input from space separated integers in c/c++?

first line contains an integer N. Each of the next N lines contains at least 1 and at most 100 space separated distinct integers(DEPENDS ON USER CHOICE). For ex- 3 5 100 1 2 5 100 i want to store nos in a 2d array like a[1][1] = 5 , a[1][2]…
anonymous
  • 11
  • 3
1 2 3
58
59