885 questions
-2
votes
1
answer
82
views
How to hide the search results if the search input is empty?
The search results are hidden by default/onload/onrefresh via CSS. Results will only shows up if you search in the input field and hit enter or if you hit the button.
For example try to search Social ...
1
vote
4
answers
141
views
How to show the list of items after clicking the button
Try to search "social" in the input field and hit enter, It is working fine. But I want the same functionality if you click the button.
I already tried creating a document.getElementById(&...
0
votes
1
answer
1k
views
How to add an 'Enter' key event listener to an input bar that I've grabbed with querySelector?
Basically, I'm following this exercise
https://www.youtube.com/watch?v=EerdGm-ehJQ&t=50183s
14n, part 2.
My page looks like this:I'm focusing on the input bar with the '3' inside it
When I press '...
0
votes
1
answer
120
views
In MAUI the Content.KeyUp cannot capture pressing Enter key
In MAUI, using KeyUp I can capture all the key pressing, but not pressing Enter key. Here is the code:
window.Content.KeyUp += (s,e){
//do something
}
If I press the Enter key of keyboard, nothing ...
0
votes
1
answer
83
views
Changing what the enter button does while stopping it from doing it's automatic action
When I press the enter button with focus on an EditText on my Android app, it switches the focus to the next EditText. I added functionality to the enter button in the java class, but cant find out ...
1
vote
1
answer
1k
views
.NET MAUI Execute Button Command Upon <Enter> by User
I just wanted to know, is there any possibility to bind the keyboard input to executing a specific button command in .NET MAUI?
I've seen one can apparently use keyboard accelerators for the menu ...
1
vote
2
answers
4k
views
I want to add an action for pressing the Enter key (the same as for the button), in powerapps
I'm creating a project in PowerApps. I need help with one functionality. I want the button and pressing the Enter key on the keyboard to perform the same action.
I am a complete beginner, I don't know ...
1
vote
3
answers
237
views
How to bind the other "Enter" on the keyboard in python tkinter?
I am writing a tkinter app in python 3.12.0 (on windows) and I want to bind the other "Enter" (Which is in Num-Lock part of keyboard) that when I press it, send my message.
I am using a Text ...
1
vote
2
answers
65
views
How to stop a button from being clicked again when I press the enter key after clicking it
<body>
<button id="aButton">A button</button>
<script>
document.querySelector("#aButton").addEventListener("click", () => {
...
0
votes
2
answers
45
views
Search Submit on Pressing Enter
I'm trying to get my search bar to work when pressing enter. It works when pressing the button but not when you press enter....
/**
* search toggle
*/
const searchTogglers = document....
0
votes
1
answer
177
views
How we can define Enter and Exit block to conenct the main flowchart in any logic?
enter image description here
How we can connect these two flowcharts together?
in order to complete the main flowchart we want to insert the flowchart which starts by Enter and finishes by Exit.
we ...
1
vote
1
answer
1k
views
scrollIntoView() method stops scrolling mid-way to the element when triggered by ENTER key on input
Context
I'm developing a list of items.
I have a form on the top of the list in order to add new items (just 1 input and 1 submit button).
Once the form is submitted, I have the next code in order to ...
0
votes
1
answer
767
views
Enter key stopped working in ubuntu after updating gsettings
I was trying to setup my zsh to make different binding for enter and ctrl + enter, and faced the following problem.
Following instructions from here I executed these commands in the terminal:
...
-2
votes
1
answer
73
views
How to skip an enter using scanner?
I've been using a scanner to read a text file but get this output.
[f,
,
, f,
,
, f,
,
, f,
,
, f]
The text file characters are all separated by enters.
I've tried using scanner.skip("\n");, ...
0
votes
1
answer
233
views
Using Enter key to move to the next field under ng-template on Angular 7+
I am getting the following : Cannot read properties of undefined (reading 'focus')
So, I console logged the nextField.nativeElement , using console.log(nextField.nativeElement) and got undefined
my ....
-1
votes
1
answer
80
views
Get Path Of File From Holding Cursor Tkinter Python
I have Label and event Enter on Label and when event fired I want get whether the cursor is holding a file if cursor holding a file get path of this file
0
votes
1
answer
99
views
Recreating the Enter Button in JavaScript
There is a page in which wherever you press Enter a textbox appears (type text). If you write something in that box and you press Enter the message will be sent. You don't have to be already focused ...
2
votes
1
answer
5k
views
Why is 'Send {Enter}' not working in a game?
I'm trying to make an AHK script to Send the Enter key to Red Dead Redemption 2.
The {Enter] key is not sent inside the game at all.
It looks like I'm not the only one, but I did not achieve anything ...
0
votes
1
answer
219
views
Why is VK_RETURN not passed to Form OnKeyPress event in subordinated form?
I have a TEdit on my main form, and on a secondary form, where I want the Enter key to call a procedure.
In both forms, I used the OnKeyPress event, but it only works in the main form.
In the ...
0
votes
1
answer
750
views
Enable keyboard enter key as a submit button in python gui
I just want to enable keyboard enter key to function as a submit button in Python gui for a simple windows desktop application.
import pandas as pd
from tkinter import ttk # for treeview
import ...
0
votes
1
answer
764
views
How to trigger button press from ENTER Key in HTML
I'm making a Chatroom App and want the user to be able to type a message and hit enter when they send it. Currently it only sends when I press the "SEND" button with the mouse. How do I get ...
-1
votes
1
answer
52
views
Limit keydown execution only to specific div
I want to limit execution with hit enter only to specific div, not on whole page so that this enter key not impact to divs outside this #targer-wrapper but code below with checking div length didn't ...
0
votes
0
answers
154
views
Rubymine cursor control and Enter key do not work on remote host
I run Rubymine IDE for a remote project (Ubuntu 20.04) via ssh. I use file menu Item called remote development and then chose ssh connection. Local machine is Windows 11. Hitting cursor controls ...
3
votes
2
answers
401
views
Move to the right cell in a Openedge browse
I need to move the cell selection in a browse to the cell on the right, when hitting the ENTER key.
By default, ENTER moves the selection to the next record, in the same column. I need to change that ...
0
votes
1
answer
79
views
Anylogic Foor Loop adding agents through enter block
I want to add a number(parameter) of agents (resources) through a cyclic event from a database (scans). I do not use an Exit Block before.
It all works for 1 cycle then I get a NullPointerExeption ...
0
votes
1
answer
172
views
Numpad enter key doesn't work in Python program
I have a Python program running on Raspberry Pi 3 (Raspbian version 10) and I need to do all operations only with Numpad. Everything works fine, but NUMPAD ENTER KEY doesn't work. When I want to enter ...
-2
votes
1
answer
111
views
Function that gets char instantly without pressing enter
I'm new to programming, and I try to program a menu in C++.
I want it to be in a while loop, breaking when ESC is pressed, but I want the character to be read instantly without having to press Enter.
...
1
vote
1
answer
724
views
How to get my enter key working properly in vscode?
When i press the command line it shows the hint:
When i press enter it comes out like this:
I tried to fix it but was not expecting any help.
0
votes
1
answer
2k
views
How to trigger click event with enter button?
I am building a very basic magic 8 ball type 'game' using vanilla javascript. I have a text field (for a user question) and a submit button underneath. At present, I have it working fine with a event ...
0
votes
1
answer
115
views
I'm creating a run pace calculator and for some reason I have to hit enter twice to get the minutes and seconds. How can I get this to work?
I think this has to do with state is asynchronous. I have tried dispatching a keyboard event so it is like pushing enter twice but I couldn't get that to work and have also tried using useEffect but ...
0
votes
1
answer
72
views
How do I detect hitting enter twice to let user exit from populating array with for loop?
I have to let user fill an array with 0-500 values, and at any moment they can exit entering the array with two consecutive empty value inputs (hitting enter twice).
Then the array displays, then it ...
0
votes
1
answer
99
views
Trying to run my python script in terminal
I'm new to Python and trying to automate a process on my computer, but I'm having trouble. I've already written my Python script with what I want to print, but I'd like to have my own code to press ...
1
vote
1
answer
244
views
Python - Run .jar file with later input / "Enter"-Simulation
I'm writing a python script where at one point I need to run a .jar file.
If I run the .jar file without python from the normal CMD I start it by:
java -jar path\to\myFile.jar <some not important ...
0
votes
1
answer
717
views
tkinter Enter and Leave Bindings
So the problem I am facing is with the "Enter" and "Leave" bind things. It works for hovering which is great but it also fire when the button is clicked which messes up my system ...
0
votes
2
answers
3k
views
Edit: Can I detect *any key* being pressed without input or installing any module?
I am writing a code where the text comes out like this:
import time
def animation(phrase):
for i in phrase:
print(i,end="",flush=True) #Animates text to be printed out one by one
...
0
votes
0
answers
38
views
How to fix: Python Error: AttributeError: __enter__?
I do a simple code to read the json but i became that error.
@bot.slash_command()
async def read(ctx):
with open("test.json", "r")as f:
data=json.load(f)
await ctx....
0
votes
0
answers
762
views
Access back office Prestashop
I have a problem in the Prestashop back office.
When I try to log in with my credentials, the page reloads every time, but it doesn't log in and the login screen appears.
In the console I get GET 404 ...
0
votes
2
answers
602
views
How do I exit my program by pressing ENTER using scanf_s?
So i've done some googling and found that using the code:
#include <stdio.h>
void main()
{
char ch;
ch = fgetc(stdin);
if (ch == '\n')
{
printf("\n");
}
...
1
vote
1
answer
99
views
How to prevent users from pressing key too early in a reaction time test
I try to make a reaction time test in python.
The code works fine but users can press enter key too early which results in their reaction time being 0.0.
Code
import time
import random
print('When ...
0
votes
1
answer
1k
views
Angular - why key.enter is not working inside mat-menu
I have the following input and I want to fire the event after pressing enter:
<input
matInput
type="number"
min="0"
placeholder="0"
(keyup.enter)=...
0
votes
3
answers
3k
views
Press ENTER robot framework
When I use Press Keys locator ENTER, instead of pressing ENTER it writes “ENTER”. There is no search button to press just textbox. Please help.
0
votes
2
answers
303
views
How to use ENTER as user input
I have a for loop and I want it to only go to the next "i"-value when you hit enter in the console. So I wrote this:
for (i in 1:5){
print(i)
UserInput <- readline(prompt = "Press ...
5
votes
2
answers
2k
views
Google Chrome 101 on Android shows TAB key on soft keyboard instead of ENTER for HTML input field
I am using Chrome 101 on Android 11. Setting the focus on a HTML input field brings up the soft keyboard. In earlier versions of Chrome, the soft keyboard then had the ENTER key on the lower right:
...
1
vote
1
answer
877
views
Focus ON/OFF in GUI.TextField
initially I thought I wouldn't have to post such a post,
because the topic seems quite simple. As you can see, he has surpassed me.
I have two logistical problems with the following code.
This is the ...
3
votes
2
answers
2k
views
How do I make Enter key behave as a tab in a Delphi FireMonkey Application?
Previously in Delphi VCL applications it was easy to "over ride" the key strokes on either the onkeyup or onkeydown events of components to make the Enter key behave as a TAB key. ...
1
vote
0
answers
351
views
How to avoid search trigger on enter when autocomplete is going to be used? ANGULAR HTML
I am trying to have an autocomplete with enter and then be able to search with enter for my input. How can I not trigger the search with enter when an autocomplete should be chosen? At the moment, ...
2
votes
0
answers
1k
views
React : Enter key click on the unexpected button
First of all, I am a beginner in React and React Native, and I am taking on a project. So, sorry if you don't have al the details, ask me what you need if you have an idea of the issue. And I am not ...
0
votes
2
answers
515
views
Python Dict 2 argument, how to exit the while loop with one <enter>
Have written below program, but how to avoid the system checking the two argument when enter is pressed, we are using the enter key to exit the while loop.
while True: # need to exit the while loop ...
0
votes
3
answers
5k
views
onSubmit React js problems
I have a problem with React JS.
I have a form where the user has to pick some options and then write a number, when the user press a button named "Consultar" or press "Enter" (...
1
vote
1
answer
171
views
Is there an equivalent to get_focus() in Tkinter for <"Enter">?
In Tkinter for the event <"FocusIn"> (which you can bind to a widget), you have like the "reversed" function .get_focus(), which will show you the name of the widget, which ...