keypress Questions
4
Solved
I have tried to google for answers to this, but perhaps there isn't widely available research or perhaps I'm not using the right terms.
Basically, I would like to have some idea as to the average ...
Emigrate asked 4/11, 2010 at 16:9
3
Solved
I'm trying to develop a jQuery plugin to do an action when the user enter a specific keyphrase.
For example, I want to match "HELLO" on keyup.
var controllerKey = [];
$(window).keyup(function(evt...
4
Solved
This:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx
...indicates that I should have access to e.KeyCode in the KeyPress event, but I don't seem to. I'm trying...
5
Solved
How can I remove Textfield focus when I press return or click outside Textfield?
Note that this is SwiftUI on macOS.
If I do this:
import SwiftUI
struct ContentView: View {
@State var field1: St...
5
Hello I was wondering if it is possible to catch the fn key with js.
What i'm trying to achieve is detect the fn + f7 keypress.
Here is my code which is not triggered with the fn key :
document...
Latimer asked 20/4, 2018 at 16:11
15
Solved
I need a function that will pause the execution of the script until a key is pressed.
I've tried:
var stdin = process.openStdin();
require('tty').setRawMode(true);
stdin.on('keypress', functio...
Evenhanded asked 30/10, 2013 at 15:43
3
Solved
Not much to say other than the title. I want to be able to take action in a SwiftUI view when a key is pressed and when it is released (on macOS). Is there any good way to do this in SwiftUI, and i...
5
Solved
I would like to be able toggle on and off the "Num Lock" key on the keyboard. I have tried multiple examples around the web and here, with no success. This is the closest thing I've got to a soluti...
Bookplate asked 20/3, 2012 at 21:2
6
Solved
I am running a process in a command window (Windows 7, Python 3.1) where I would like the user to abort the process by pressing Esc key. However, pressing Esc doesn't appear to do anything, the loo...
3
Solved
My WPF application handles keyboard presses and specifically the # and * character as it is a VoIP phone.
I have a bug though with international keyboards, and in particular the British english ke...
2
Solved
I am not sure if its possible in .NET MAUI. Is anyone found solution to detect key press (including Special keys )?
Blotch asked 5/8, 2022 at 13:44
2
Solved
I'd like to prompt the user for input, let the user enter multiple lines of text, hitting enter between each line, then terminate the input by pressing CTRL+D or some such thing.
With "keypress", ...
Hadleigh asked 13/10, 2014 at 23:1
3
I have developed an On Screen Keyboard in WPF. I need to capture the key
press event (via Key Board) in order to keep a track of Caps Lock, Shift
etc (whether they are pressed).
Please note that my...
22
Solved
How do I detect when one of the arrow keys are pressed? I used this to find out:
function checkKey(e) {
var event = window.event ? window.event : e;
console.log(event.keyCode)
}
Though it work...
Tab asked 8/4, 2011 at 15:9
10
Solved
I'm working on a program with DataGridViews.
In one DatagridView there is a DataGridViewTextBoxColumn, which is enabled to be edited by the user. When the user is done with typing the numbers into...
Mikiso asked 24/4, 2011 at 16:2
3
Solved
I've got a loop in which some things happen according to the state it runs in (manual/automatic/learning). I now want to be able to let the program switch between these states by pressing the accom...
Indeciduous asked 29/1, 2019 at 13:34
7
Solved
is it possible to get users keypress on lua?
fe.
while true do
if keyPress(27)==true then
print("You just pressed ESC")
end
end
3
Solved
Why, when I press Enter, does the keyPressEvent method not do what I need? It just moves the cursor to a new line.
class TextArea(QTextEdit):
def __init__(self, parent):
super().__init__(parent=...
Blossom asked 7/3, 2013 at 4:25
11
This is my code:
private void txtAdd_KeyPress(object sender, KeyPressEventArgs e)
{
if (!(char.IsLetter(e.KeyChar)) && !(char.IsNumber(e.KeyChar)) && !(char.IsWhiteSpace(e.KeyChar...
2
I am trying to simulate a user pressing a key, holding it for some specific time interval, and then releasing it. I have tried to implement this using SendKeys.Send(), but I cannot figure out how t...
17
I am making a stopwatch type program in Python and I would like to know how to detect if a key is pressed (such as p for pause and s for stop), and I would not like it to be something like raw_inpu...
Awake asked 6/6, 2014 at 1:26
13
Solved
In this particular case, what options do I have to make these inputs call a function when I press Enter?
Html:
<form>
<input type="text" ng-model="name" <!-- Press ...
Jonna asked 14/3, 2013 at 18:16
12
How can I make the onKeyPress event work in ReactJS? It should alert when enter (keyCode=13) is pressed.
var Test = React.createClass({
add: function(event){
if(event.keyCode == 13){
alert('Add...
Providenciaprovident asked 7/1, 2015 at 19:34
7
Solved
I want to use a keyDown event on a div in React. I do:
componentWillMount() {
document.addEventListener("keydown", this.onKeyPressed.bind(this));
}
componentWillUnmount() {
document...
5
Solved
The objective is manually set a held key's "repeat rate".
For example, when in a text box and pressing and holding the X key, I understand that there is browser-specific ways of repeating the pres...
Spearman asked 6/7, 2012 at 3:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.