Questions tagged [arrow-keys]

The up, down, left, and right keys on a keyboard, also known as "cursor keys".

The arrow keys are the up, down, left and right keys on a keyboard, also known as "cursor keys". They are primarily used to move the cursor around on-screen text, and are also often used to move player characters in games.

They behave as normal keys for keyboard events, returning both a Unicode value and a code.

References

363 questions
0
votes
1 answer

What would you call a website which matches the functionality of this example?

What do we call websites like this http://www.jecrcrenaissance.in/ Try using keyboard arrow keys.
0
votes
1 answer

How to keep a QSlider activated to allow movements with arrows at any time

I would like to be able to move a QSlider with arrows of the keyboard at any time. I want to be able to click anywhere on the QWindow and keep QSlider activated to move the cursor with the arrows. My problem is that move the cursor with arrows is…
Jeanstackamort
  • 309
  • 2
  • 4
  • 16
0
votes
1 answer

selenium IDE - how to simulate a down-arrow key press on a select?

I have a select dropdown for time with the current time + 1/2 hour pre-selected (so changes frequently) by the application server (rails). How can I arrow-down 6 times (the increments are half hours) to pick the value currently selected plus 3…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
0
votes
2 answers

Java awt Robot still cant press non-numpad arrows on windows?

This bug is known for years, yet is is still present in Java 1.7.0_25 version which I'm using on Windows 8. The following result are same regardless of wether i have numlock turned on or not: Robot bot = new Robot(); bot.keyPress(KeyEvent.VK_UP);…
kajacx
  • 12,361
  • 5
  • 43
  • 70
0
votes
1 answer

(How to read arrow keys) Cheat code in C programming (when inputted from the keyboard)

I am making a game in C, and when the user input the Konami code (cheat code), the program should print out the correct answer. (edit #3) found out that my program does not "read" the arrow keys whenever I input it, how do I make it so? pls. see my…
user3203014
  • 19
  • 1
  • 1
  • 5
0
votes
1 answer

ActionScript: How come i cant draw diagonally?

So, I'm learning ActionScript on my own with a book ('Foundation AS3.0 with Flash...'). And I'm stuck on an excercise. I have to make a drawing app with using the arrowkeys and spacebar. It doesn't work 100%. I can draw up, down, right, left. Even…
0
votes
1 answer

Javascript keydown spacebar + cursor keys

I'm having a problem with getting an input from cursor keys on a keydown event. I am using a keydown event for spacebar and the arrow keydown event at the same time (in a spaceinvaders game, you should be able to move AND fire via spacebar at the…
0
votes
1 answer

Arrow Keys as Wide Chars

I am trying to determine if it is possible to take arrow keys and convert them to wide characters. I am using conio.h for its getch() function, I just like how it works compared to similar functions, and it has to be called twice to retrieve arrow…
Josh C
  • 1,035
  • 2
  • 14
  • 27
0
votes
3 answers

javafx adjust setMnemonicParsing(true) alt key

in JAVAFX, I am using shortcut by using setMnemonicParsing(true) code which is from googling is below VBox mainLayout = new VBox(); MenuBar menuBar = new MenuBar(); Menu menu1 = new Menu("_File"); menu1.setMnemonicParsing(true); …
0
votes
1 answer

jQuery Virtual Keyboard - set Arrow LEFT and Arrow Right

I have spent time to create a jQuery Virtual Keyboard which it is displaying when the focus is set to Input. I did almost all buttons from keyboard to work, but I had stucked to make function for keys: Arrow Left and Arrow Right. Please people, who…
Sergiu Costas
  • 530
  • 4
  • 8
  • 26
0
votes
1 answer

Key Pressed wont work

Im having trouble getting the key pressed event to work, it doesn't recognize key input, can someone please help? I have three classes player, exe, and board Here is the board class import java.awt.Color; import java.awt.Graphics; import…
0
votes
1 answer

using arrowkeys in a c# webapp

I am trying to make a webapp with c# as code behind. A target is to be able to change from one site to another using the arrowkeys to switch back and forward. I do have a forward- & backwards button which i think would be the easiest to call,…
Web_dude
  • 9
  • 5
0
votes
0 answers

Easiest way to react on cursor keys (arrows) in interactive shell script

I'd like to write a shell script which shall be interactive and react on the use of cursor keys. My current approach seems a little complicated. I would determine the escape sequence for the cursor keys using tput kcud1 etc. and then use read -s…
Alfe
  • 56,346
  • 20
  • 107
  • 159
0
votes
3 answers

why getch() function works twice?

I write small program in C. The code of the program is below. #include #include int main() { char ch; int count = 0; while(1){ ch = getch(); count++; printf("%d\n",count); } return 0; } when i run this…
namco
  • 6,208
  • 20
  • 59
  • 83
0
votes
1 answer

how do you run two do while independently in C

im trying to create something similar to "lost in migration" as a project for my finals but im having trouble with the randomization and the timer how do i run two do while independently of each other timer should not disappear, and must keep…