Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
76 views

I'm on Debian 13 (trixie) with XFCE desktop environment on a 13-inch laptop (no dedicated numpad). The physical "9" key on the top row: Sends keycode 18 (confirmed with xinput test and xev) ...
Rich's user avatar
  • 1
1 vote
1 answer
93 views

I have an application that relies on the deprecated keyCode property for keyboard shortcuts. I need to update my code to use a modern alternative that works consistently regardless of the user's ...
tsveti's user avatar
  • 19
2 votes
1 answer
68 views

Some of the key inputs on my nvim running in xterm are a bit odd. For example, to get the '^' key, I have to press shift-6, and instead of it just generating a '^' character, it actually generates '&...
Rich's user avatar
  • 391
3 votes
1 answer
123 views

I am writing a CLI text editor in c. I have to handle a lot of CTRL+key inputs. Right now, I am using a macro that gets the key you want to pair with CTRL, like this: #define CTRL(key) ((key) & ...
Everlee Jones's user avatar
0 votes
1 answer
54 views

Using a laser reader and the KEYDOWN event of excel vba, which key on the keyboard is associated with a laser reader? I need to use Excel VBA keydown event for a textbox object but I use a laser ...
Pasquale Prudente's user avatar
-1 votes
2 answers
219 views

function NumberKey(event) { let charCode = event.which || event.keyCode; console.log(event.keyCode) if ((charCode >= 48 && charCode <= 57) || // Number (0-9) (...
Harry Kim's user avatar
2 votes
0 answers
81 views

I'm capturing the keyboard keys that are pressed by the CreateKeyboardHook event, where it returns all the keys that were pressed (making it a keylogger, without storing or anything like that, just ...
VanDecisive's user avatar
1 vote
0 answers
17 views

we have only one Input Filed for both Serial and References number entry. {so, 1st character can be A or 0-9, 2nd to 8th characters must be -> btw 0-9} serial: number requirement {0-9} - only 8 ...
rushika k's user avatar
-1 votes
1 answer
94 views

I'm using the DropdownStyle Combobox: Dropdown If I press on the keyboard with enter then only once but why if I press on the keyboard with escape then it must be done twice, I use the String.Equals ...
user avatar
0 votes
1 answer
189 views

I am trying to build a wordle clone, but I am running into issues when trying to filter out only the alphabet to be taken as keyboard inputs for the game. Currently I have a Keyboard container that ...
auto-noah's user avatar
0 votes
2 answers
243 views

key code 10182 for Exit button in tizen studio does not work ? you proposals document.addEventListener('keydown', function(event) { if (event.keyCode === 10182) { // 101 is the key code for the ...
Software engineer's user avatar
0 votes
0 answers
26 views

The following code condition is Japanese keyboard keycode and If I change English keyboard layout it needs to work. $('input,textarea,div#editorId').on('keydown', function(e) { if ((e.shiftKey == ...
Karthi A's user avatar
0 votes
1 answer
39 views

This is an script that i created, however, it is not working. It is supposed to stop the rotation when i press the space bar: local spinning = script.Parent local state = true local function ...
Miguel Level Up's user avatar
0 votes
2 answers
72 views

window.addEventListener('keydown',function(e){ const audio = document.querySelector(`audio[data-key=${e.code}]`) console.log(audio); }); <div class="keys"> <div data-key="...
Shaveen Perera's user avatar
0 votes
0 answers
363 views

I´ve got multiple buttons that need to be accessed through KeyDown events in a Windows Form. I´ve set up some of them without any problems, but when setting the KeyCode to Keys.LShift it just doesn´t ...
thrieks's user avatar
0 votes
0 answers
44 views

Basically, what I am trying to do is to create a system where I can store keycode in a .dat file named Bindings and use them to define the key associated with an action. For example the key escape is ...
Arnaud Girard's user avatar
0 votes
2 answers
173 views

I am starting to work with keyboardlayouts on windows using kbd.h. I understood the part scancode->keycode via kbdxx.dll but struggle on the part of processing modifier keys (shift, Ctrl,Alt) ...
user3443063's user avatar
  • 1,697
2 votes
1 answer
1k views

I have problems figuring out the the difference between scancode, virtual scancode, keycode, virtual keycode, virtual key: I know that virtual Key (or virtual keycode ??) is a pressed modifier (Ctrl, ...
user3443063's user avatar
  • 1,697
0 votes
2 answers
142 views

i need to move the element by the arrows (arrowUp arrowDown and so on)but event key/keyCode is deprecated. So what can i use instead of them?
Arsen Mkrtumian's user avatar
4 votes
2 answers
218 views

How to send a string to a virtualbox-guest-machine? This is my code: public void testKeyboard() throws Exception { IVirtualBox b = connect(); List<IMachine> machines = b.getMachines(); ...
Grim's user avatar
  • 2,163
-1 votes
1 answer
81 views

I was doing a simple program in JS to get a list of keyCodes for all french phoneme symbols in the International Phonetic Alphabet, and I realised that key like ɔ̃ are actually considered as ɔ and ~. ...
nanto's user avatar
  • 1
0 votes
1 answer
328 views

I need to draw a line using one application tool. I tried code below, it is not working. So basically I need to click on a word while holding option key and then click on another word, it will create ...
Miranda's user avatar
-1 votes
1 answer
985 views

I'd like to use the function preventDefault() to disable the spacebar from jump-scrolling down, like it usually does in Chrome, for example. If I try this: $('html').keydown(function(e){ if(e.keyCode ...
Ben Viatte's user avatar
0 votes
0 answers
170 views

I need the JavaScript to go to 'pag2' when I press spacebar, but it does nothing, there isn't anything on 'pag1' or 'pag2' (the files) ` document.body.onkeyup = function(e) { if (e.key == " &...
RonaldDJorgensen's user avatar
1 vote
1 answer
158 views

I want the movement to be smooth upon pressing a key, the object does an initial movement and then starts moving completely when holding down the button. //movement speed var xSpeed = 0.5; var zSpeed ...
kieron's user avatar
  • 13
1 vote
0 answers
492 views

Recently I updated the Chrome to version 106 in some industrial devices working with Android. These devices works with web pages developed with PHP and Javascript routines. Now I show you the problem ...
Matteo's user avatar
  • 11
0 votes
2 answers
435 views

I'm currently making a purposefully frustrated mini-game where the movement keys change each time you use them. I intended to do this with the code bellow. public class Flop : MonoBehaviour { ...
Nicole Shrader's user avatar
0 votes
0 answers
268 views

With the following code I can scroll back and forth in my picture gallery with the arrow keys. I would like to be able to use Escape to end the display of the images - but this only works in Chrome ...
Pilow's user avatar
  • 1
1 vote
1 answer
116 views

Example code: #include <stdio.h> #include <stdlib.h> #include <linux/keyboard.h> #include <sys/ioctl.h> #include <sys/kd.h> int main(int argc, char **argv) { struct ...
Winston's user avatar
  • 111
0 votes
0 answers
264 views

I built a circuit with Arduino Micro that sends Keyboard inputs to my Laptop. With a program on my Laptop I want to define what keyboard inputs should be simulated. To do that I try to record keycodes ...
Finn's user avatar
  • 79
0 votes
1 answer
124 views

I think the problem could be with the const audio = document.querySelector(audio[data-key="${e.keyCode}"]); const key = document.querySelector(.key[data-key="${e.keyCode}"]); It ...
therealslim's user avatar
2 votes
0 answers
42 views

document.onkeyup = function(e){ console.log("Key code is:",e.keyCode) if(e.keyCode == 38){ dino=document.querySelector('.dino'); dino.classList.add('animateDino'); setTimeout(()=&...
B M PAVAN's user avatar
0 votes
1 answer
84 views

I have hotkeys on my app when using a physical keyboard and all the keys work fine except for the return key. Is there a reason why or a workaround to make this work? Thanks. extension ...
STerrier's user avatar
  • 4,045
0 votes
2 answers
3k views

Im trying to make it so that you can assign whatever key you want to make the player jump/move via unity itself and not the script. I want to set public variables with the keycodes of each key and use ...
RaptoRR's user avatar
  • 55
1 vote
2 answers
849 views

I've been surfing through a lot of old P5.js questions and ran into this question: p5.js code isnt executing when spacebar is pressed in combiniation with up and left I tried out a few of my ideas in ...
KoderM's user avatar
  • 382
0 votes
0 answers
316 views

Im unsure how to replace e.keycode? should it be KeyBoardevent? document.body.addEventListener("keyup", function(e){ keys[e.keyCode] = false;
truthseeker's user avatar
1 vote
0 answers
168 views

I wanna make an opportunity to rebind some buttons. I have "launchParametrs.txt" file so the KeyEventArgs field must get KeyCode from "Start: (bind button from file)". But I can't ...
kapiton's user avatar
  • 11
0 votes
1 answer
1k views

I have developed a table and which I have integrated a self-created navigation. Problem is, when I scroll up and down so always moves the scrollbar with. Is there a way when I press keydown or keyup ...
user avatar
-2 votes
1 answer
841 views

Im new here in Coding and im Trying to activate my button from a Textbox by pressing enter. I tried to google for the Answer but Visual Studios say it doesnt work. The most common Thing i read while ...
Snawa's user avatar
  • 3
-1 votes
1 answer
187 views

I am fairly new to coding and I have been constantly been coming upon one problem. When making a game, such as snake or pong, I tend to use an event listener to listen for a keydown event such as : ...
ItIsAspect's user avatar
-1 votes
1 answer
275 views

I saw some codes like this: if (Input.GetKey(KeyCode.UpArrow)) and if (Input.GetKey(KeyCode.UpArrow)) Wanted to know how do I put other keys, as in the case of the "a" if (Input.GetKey(...
Gengar Zueiro's user avatar
1 vote
1 answer
961 views

I was messing around with scancodes and keycodes in Debian Buster and I've found something strange. Using sudo showkey -s I discovered that the scancode of the PrintScreen/SysRq key of my USB wired ...
Arthur Rodrigues's user avatar
-1 votes
1 answer
45 views

So i have this text input field and I have the showKeyCode() function which gets the value from the text input and prints the keycode representation of the pressed key into the console. function ...
tin's user avatar
  • 68
0 votes
1 answer
75 views

const login = prompt("Enter username!", ""); if (login === "Admin") { prompt("Enter password!"); } else if (login === "" || login.keyCode === 27) { alert("Canceled"); } else { alert("I don't ...
bandiantal96's user avatar
0 votes
1 answer
633 views

I am pretty new to Javascript and have been using it for almost a month. I am trying to create a website easter egg that can be found by typing a hidden word into the searchbar. My problem mostly has ...
Anosei's user avatar
  • 3
0 votes
2 answers
173 views

I have some code which captures a key. Now i have in event.code the real key-name and in event.key i get the key-char. To make an example: I press SHIFT and J, so i get: event.code: SHIFT KEYJ event....
Guenni_d's user avatar
-5 votes
2 answers
1k views

I want to create a new virtual key code in the windows API that I can assign scan codes to and read with GetKeyState but I cannot find a way to extend the enumeration. I have tried using "unknown&...
Bots Fab's user avatar
  • 199
1 vote
1 answer
403 views

I've got a bunch of code set up that uses InputListener.keyDown to test keys pressed, and uses those keycodes to display keystroke hints. However, on non-QWERTY keyboard layouts (like Dvorak or ...
Trekopep's user avatar
1 vote
1 answer
220 views

I'm looking for a way to be able to capture the key shown in the photo below: On a French keyboard, it's the key that only has the character 2 (small). Key 2 I first tried to use the Esc key but it ...
Thierry F.'s user avatar
1 vote
2 answers
334 views

Got a problem with my code (on Unity 2D). I'm trying to make a PacMan like for my class, and my PacMan doesn't want to move at all. He's animated but he's not moving. public class PacmanMove : ...
Shiroe's user avatar
  • 597

1
2 3 4 5
17