Questions tagged [keyboard-input]
105 questions
3
votes
2 answers
How to get key modifiers in Linux Chrome
How can my javascript program determine which modifiers were pressed along with a keydown event in Chrome on Linux?
I tried this code:
document.addEventListener('keydown', function(e)
{
console.log("KEY DOWN: key=" + e.key + ", code=" + e.code
…

personal_cloud
- 3,943
- 3
- 28
- 38
3
votes
0 answers
keyDown(with:) Not Called on Custom ViewController or View, Only WindowController
I have moved most of the core functionality of my non-document based macOS app to a custom, embedded framework.
The app code has a standard main storyboard with an initial window, and the window has a "window content" relationship/segue into a…

Nicolas Miari
- 16,006
- 8
- 81
- 189
3
votes
1 answer
Flutter keyboard issue when wrap under Stack > Opacity > Scrollable
In flutter app, when an input field is wrapped inside Scrollable, Opacity, Stack, when keyboard appear, the scrollable view is not correctly placed.
How to make the scrollable view correctly when keyboard appear?
If input field is not wrapped…

Kyaw Tun
- 12,447
- 10
- 56
- 83
3
votes
2 answers
How to restart keyboard input method without logout/in in linux
I am using nabi (keyboard input method) to switch between Hangul(Korean) and English. A few days ago, I changed my keyboard with no Hangul key, which was the toggle key. I changed the toggle key setting in nabi to shift + space, but it seems to have…

Hoseung Choi
- 1,017
- 2
- 12
- 20
3
votes
1 answer
Reading multiple simultaneous keyboard inputs using javascript
I've been noticing some odd behaviour with keyboard input in JavaScript. I may be missing something really obvious here, but are there some kind of rules regarding which keys are allowed to be pressed simultaneously?
I'm using boolean variables to…

Polynomial
- 3,656
- 23
- 36
3
votes
1 answer
what is the preferred way to java awt keyboard input
I seen many conflicting recommendations on the internet including here on how to handle input with awt and swing and several people have worked on my code and its a mess.
options
implement KeyListener or extend KeyAdapter
^to the application's main…

Old Badman Grey
- 668
- 10
- 19
3
votes
1 answer
How do I get a char obtained by holding shift?
I'll try to explain better what I mean, and I'll also try to keep the question free from language, though if there is a way to do what I want in C# without having to reference anything it'd be nice.
Anyway.
I am handling keyboard input, and…

KappaG3
- 660
- 5
- 14
3
votes
1 answer
ncurses getch() skipping every second character
I'm writing a Tetris game with ncurses getting keyboard input with getch(). For the finished game nodelay() will be active but for testing purposes I have it commented out. For some reason the input function called by my game loop is ignoring every…

Reid A
- 101
- 1
- 1
- 7
3
votes
1 answer
HTML/Javascript: Outputting keyboard strokes to URL Parameters
I'll first explain my overall goal and then the question itself.
Overall Goal:
To send commands to an Arduino board that is connected to a router. A computer will be connected to the router over wifi. The Arduino will serve a local website that the…

Nick Williams
- 253
- 2
- 12
2
votes
2 answers
insert a span in a contenteditable, and then user can not continue input after and out the span that just be insert
the code target : when user press space, auto input a span, and then user can continue input,
when i trace them in the devtools,range.setEnd(lasttextnode, 0); and range.collapse() run in right way,
but the keyboard input is not right, i set the…

defend orca
- 617
- 7
- 17
2
votes
1 answer
int 21h ah 02h doesn't work for some reason
My task is to read a number from a terminal (aka atoi) and then write it back to terminal (aka itoa).
To read a string I use int 21h, ah 0ah. It seems nice when I check it in the debugger. And then my atoi and itoa also look nice except that in itoa…

Nikolay Zhurba
- 23
- 4
2
votes
0 answers
How to consume XEvent when using Xinput 2?
I am looking at this example. I'm trying to write a program that will run in background and listen to all keyboard events. That program should be able to discard some of the keyboard input. In before mentioned example, key logger doesn't consume…

Belgradensis
- 43
- 4
2
votes
0 answers
Jenkins windows batch file user input: Press any key to start issue
I am trying to run a windows batch file by jenkins on slave windows machine.
The batch file requires “Press any key to continue” input which is not possible atleast for me during job build. Any ideas how can i pass keyboard input to batch file…

Naveen Guleria
- 31
- 2
2
votes
2 answers
Elm : Combining both actions.signal and keyboard input in foldp
Currently I'm experimenting with elm (so consider me a beginner) and was wondering about the following,
I have defined the following model :
model = foldp update initialModel actions.signal
I understand how foldp works, it calls my update method to…

Koen Certyn
- 193
- 3
2
votes
0 answers
Java Strings and non-ASCII input from keyboard
So I am trying to take non-ASCII text from the keyboard (System.in), Chinese characters for example, and place this text into a String object. But I've been having some trouble in doing so. My first attempt used a Scanner object:
try(Scanner…

programmar
- 670
- 2
- 8
- 18