Questions tagged [keyboard-events]

An event that is triggered when a Key is pressed on a keyboard input device

A KeyboardEvent is an event that is triggered when a Key is pressed on a keyboard input device. The event will contain information relating to the particular key that was pressed, how long the key was pressed for, and whether any modifier keys were also pressed (such as Ctrl or Alt).

2201 questions
0
votes
1 answer

Allowing data additions but not deletions in a MS Access Form's Textbox

I am not sure if this is possible, but I would like to be able to restrict anyone from changing/deleting the current text in a textbox, but allow them to add to it? This way there is no way to accidentally delete data, but if something was wrong,…
0
votes
1 answer

Nand2tetris Project4- Test failed - of Fill.asm: Comparison failure at line 3

Not mentioning much about the Nand2tetris course and uploading the assembly file which interacts with the keyboard. Basically what this program does is when a key is pressed on the keyboard the screen turns black i.e. every pixel of the screen is…
kirti purohit
  • 401
  • 1
  • 4
  • 18
0
votes
1 answer

In a Powershell, Win Forms GUI, is there a way to turn on/turn off certain events dynamically

I have a powershell script using Windows Forms to create the GUI. I want certain Controls to catch click and keystroke events for a while, then stop (ie. no longer need to monitor that event and/or call the event handler func). I do not see…
0
votes
1 answer

How do I detect keyboard event in background while receiving data from server (C++ TCP Client)

I'm making a multiplayer game with TCP connection between client and server in C++. The client is ment to detect keypresses (arrowkeys) from the console and send data to the server. The server is supposed to send data to all connected clients about…
0
votes
2 answers

Alternatives to event.which and event.keyCode in JavaScript

I tried to use the event.which and event.keyCode in my JavaScript code today and got a line ruled across each. I read that both have been deprecated on my VSCode. Does anyone know the alternatives to them?
Aye
  • 271
  • 3
  • 9
0
votes
2 answers

PowerShell WPF UI detect key combination

I am writing a UI to run in WinPE. I have everything working so far and am trying to make it so the user cannot close the window. I have made it full screen and disabled the close (X) button, but the user can still press Alt+F4 to close the UI. I…
0
votes
1 answer

How to "Alt+Left Arrow" puppeteer page.keyboard

i new with puppeteer js, i currently making automation for page and there are the task that the programs need going back to the previous page i want to make my page back to history without using page.goBack(); function, so i think i will do this…
0
votes
1 answer

Python - Turtle.onkey() - A way to accept Any/Unknown Key?

I would like to build a little typing/keyboard demo of the turtles key event. I would also like to avoid having a separate onkey call and function for every single key on the keyboard. Is there a way to Get the key pressed from the onkey event…
codingCat
  • 2,396
  • 4
  • 21
  • 27
0
votes
4 answers

How to disabled submit button for if any fields is empty?

I find this link Disable submit if inputs empty jquery to be sure that the code I write is ok. They look same, but when I execute mine, and try to fill form from the latest input (from bottom to top, inn any of my forms), the submit button is…
Cutis
  • 949
  • 1
  • 13
  • 32
0
votes
0 answers

Capture keypress event with Python keyboard library

With this simple code I want to capture keyboard events for some keys and do specific actions without printing a symbol. import keyboard special_keys = [ 'a', 'b', 'c' ] def on_press(event): if not event.name.lower() in special_keys: #…
0
votes
1 answer

Can we simulate a key press without an event handler?

There has been a lot of discussions on Stack Overflow about how to dispatch a keyboard event programmatically with JavaScript. However, they are not simulating 'real' key presses in the sense that they merely fire a predefined event handler. What I…
Chong Lip Phang
  • 8,755
  • 5
  • 65
  • 100
0
votes
1 answer

How not to dismiss keyboard in iPad even if the user presses the dismiss button on the right bottom?

On one of my view controllers on iPad, I don't want the user to dismiss the keyboard even if the user presses the dismiss button on the right bottom of the keyboard. I want this because there's nothing else on the view that he can do without the…
aslı
  • 8,740
  • 10
  • 59
  • 80
0
votes
2 answers

React Native: I press text input and keyboard is appears and is automatically dismissed once when using Keyboard.addListener

I was trying to remove a view from the screen when the keyboard appears so everything can fit on the screen. After the keyboard is initially dismissed the first time - with the keyboardDidHide code commented out - it will not automatically dismiss…
david
  • 117
  • 1
  • 5
0
votes
1 answer

Python Blessed Library Missing Key Press Events

The blessed Python library looks great for making console apps, but I'm having trouble with the keyboard functionality. In the code below, only every second keypress is detected. Why is this please? I'm on Windows 10 with Python 3.8. from blessed…
Robin Andrews
  • 3,514
  • 11
  • 43
  • 111
0
votes
1 answer

disable a specific hardware keyboard keys(e.g. Home & End keys) for Xamarin.forms uwp desktop application

I have tried to using "KeyboardDeliveryInterceptor" class using Dependency Service but was unable to achieve the result since it is disabling whole keyboard. Reference for "KeyboardDeliveryInterceptor" : Disable keyboard interaction with UWP app.
1 2 3
99
100