2,624 questions
Advice
1
vote
3
replies
75
views
C++ get full controll of any keypress in Linux Gnome terminal
I already can get keypresses in my c++ app.
I want to get any keypress when running in a terminal on Linux. The terminal is the gnome terminal app running on the Cinnamon desktop.
For example,
I want ...
0
votes
0
answers
80
views
GTK Attempting To Catch Key Press in Eventbox, Lacking Understanding
I'm trying to modify the popular waybar program (which can be found here). Waybar is a highly customizable status bar that organizes various visual elements into "modules", which can respond ...
0
votes
0
answers
29
views
Simulating keypress in java running in linux to change keyboard layout
I am writing a dictionary program with requires switching keyboard layout.
I have kde set up that ctrl-alt-k switches layout.
I have tried simulating the ctrl-alt-k keypress from the program but this ...
0
votes
0
answers
22
views
Laptop and Raspberry Pi Scripts Not Synchronizing After Sending Keystrokes Using Sockets
I am working on two scripts, one that works on a laptop and another that works on a rasberry pi. It should handle the main menu on the laptop, send it to the pi which decodes it and writes it to a csv....
1
vote
1
answer
69
views
Using sshkeyboard in Python to return a variable
I want to use a Raspberry Pi 5 running Python3 to read the keypresses on a USB connected keypad. I am using sshkeyboard and have read the questions and answers here on that topic, but they only detail ...
-2
votes
1
answer
75
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
121
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
0
answers
33
views
How to read character input, in a terminal, without blocking, in Python? [duplicate]
I have a loop that I need to keep looping. Meanwhile I want to know if the user has pressed a key within the loop, but I don't want to have to wait before continuing.
This also needs to work in a ...
0
votes
1
answer
46
views
addEventListener in a keyboard button project
I have a mini project about a keyboard, I want to know how I can add the addEventListener in my JavaScript code to if I press a key in my own keyboard, show that button in my project and change the ...
0
votes
1
answer
100
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
118
views
python tkinter - detecting arrow keys when shift and function key are pressed, or control and function key are pressed
This is a follow-on question to an earlier question
( python tkinter - detecting arrow keys when an alternate key is pressed )
I would also like to be able to detect if the function key is pressed, ...
2
votes
2
answers
154
views
Linux select not detecting key presses
I am trying to debug an issue with random key presses being registered even though I have not typed them. I had started the question here.
Initially I ran evtest and specified each device. I could ...
0
votes
2
answers
134
views
Implementation key press in Swift
I'm writing an application that will use your's phone as touchpad and simulate different touchpad's gestures by Swift code on Mac. But when I've tried to implement swiping between workspaces (same as ...
1
vote
1
answer
79
views
How can I stop keyPressed from repeatedly being called?
When I press an arrow key, keyPressed is called once, and then after a delay it is called very rapidly, like when holding down a key to type a long string of letters like so: eeeeeeeeeeeeeeeeeeeeeee
...
-1
votes
1
answer
45
views
Facing problem in Keyboard module in Python
I was using keyboard module to track the key presses of the user.
But I found this problem while trying this code:
Code
import keyboard
while True:
key = keyboard.read_key()
if key == 'left'...