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
3
votes
2 answers

Getting duplicates when Incrementing & Decrementing using the Arrow keys with React JS

I came back to this problem of trying to increment/decrement through a Menu and about to drive my head though wall figuring this out. I feel I'm almost there, but missing something. I am running into not being able to arrow right until I click on a…
user992731
  • 3,400
  • 9
  • 53
  • 83
3
votes
1 answer

Cross platform solution for input on stdin with arrow keys support?

I know there are many similar questions, but I could not find answers clear enough. I am writing something that resembles a little primitive shell in C. I am constantly querying the user to enter commands, which I process. To read a line, I use…
bp99
  • 338
  • 3
  • 15
3
votes
0 answers

Navigate with arrow keys in a vue component under an input box

I have a Vue input box through which I filter a list of names. The filtered list (which is a Vue component) appears correctly under the input box, but I would like to use the arrow keys to navigate through this list. The problem is that the keys do…
Ivan_nn2
  • 469
  • 7
  • 20
3
votes
1 answer

Key Event doesn't actives by arrow keys

first of I'm working with WPF and i'm new to it. I added a KeyDownEvent to a content control in xaml: I know, probably there is a better way to add…
Dragon
  • 33
  • 6
3
votes
1 answer

hold screen for accepting arrow keys

for using arrow keys, first it has to be stored for analyzing it. That's why I am using scanf to store it. But when I try to run this code, and when I press up key, then it is showing ^[[A and when I press enter then this ^[[A removes and program…
piyush-balwani
  • 524
  • 3
  • 15
3
votes
3 answers

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)?

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)? I am very confused how to do this. I have read this link very carefully, Events and keyCode+charCode, but I could not find…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
3
votes
1 answer

How can I get Ruby curses to respond properly to arrow keys?

TL;DR How can I get Ruby curses to respond properly to arrow keys? The KEY_UP constant doesn't seem to match my input. Environment and Problem Descriptions I am running Ruby 2.1.2 with the curses 1.0.1 gem. I'm trying to enable arrow-key navigation…
Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199
3
votes
3 answers

How can I identify and handle control characters and arrow keys in Perl?

I want to implement the command line features like in a linux terminal. I saw this in ftp command also. If I press tab I need to list the commands. If I press control characters I need to get that characters based on that I will do some…
sganesh
  • 1,731
  • 1
  • 13
  • 14
3
votes
3 answers

Using arrow keys with jQuery scrollTo

I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class "new" when a link is clicked. However, I would also like to be able to use the arrow keys to scroll up and down to the next/previous divs of the…
Ted
  • 245
  • 2
  • 3
  • 5
3
votes
3 answers

How to disable page scrolling in FF with arrow keys

I'm building a menu with topics and items. Each topic can be expanded and collapsed by clicking on it. My task is to make it possible to move through menu topics and items with the up and down arrow keys. I've done this already, but the problem is…
Chavdar
  • 33
  • 1
  • 3
3
votes
1 answer

how to use arrow keys as an input in a batch file

I was curious if there was a way to use the arrow keys on your keyboard to be able to receive input form them and use this information in a batch file? Thanks BurnE
Burn_E99
  • 1,098
  • 1
  • 17
  • 27
3
votes
3 answers

How to send an arrow key use paramiko library in python?

I'm using python 2.7 and code ssh client with paramiko library, I use myhost.channel.send(chr(keycode)) to send every keycode to server. But It only works with 1 byte keycodes. I want to send other multi-byte keycodes like arrow keys. How can I…
2
votes
1 answer

NCurses with Arrow Keys Plus Modifiers

I'm having trouble detecting arrow key presses with and without the SHIFT and CTRL modifiers pressed. I have the following test code: WINDOW * mainwin = initscr(); keypad(mainwin, TRUE); int c = wgetch(mainwin); This successfully returns different…
Nicholas
  • 1,392
  • 16
  • 38
2
votes
2 answers

How to ignore arrow keys in C reading from stdin?

I'm reading from the standard input using the read() system call but there's a tiny thing that bothers me. I can't use the arrow keys... What I really wanted to do was to use arrow keys to go back and forth within the typed text but I think that's…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
2
votes
2 answers

Mac OS arrow keys not working properly when enabling paredit in Emacs

I currently have this in my .emacs, which worked just fine in Linux: ;; paredit ;; this is from somewhere else on Stackoverflow ;; deals with…
wrongusername
  • 18,564
  • 40
  • 130
  • 214