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

How can I respond to external keyboard arrow keys?

I know this has been asked before, and the only answers I've seen are "Don't require an external keyboard, as it goes against UI guidelines". However, I want to use a foot pedal like this: http://www.bilila.com/page_turner_for_ipad to change between…
colincameron
  • 2,696
  • 4
  • 23
  • 46
11
votes
3 answers

Java - having buttons displaying arrows

I would like to have a buttons in Java which shows the arrows - like on the keyboard. So far I have this JButton arrowUp = new JButton("^"); JButton arrowDown = new JButton("v"); JButton arrowLeft = new JButton("<"); JButton arrowRight = new…
Pavel Janicek
  • 14,128
  • 14
  • 53
  • 77
11
votes
1 answer

Working with Arrow Keys in a WPF Textbox (C#)

Is there any way to catch the Up/Down arrow keys in a WPF TextBox (System.Windows.Controls.Textbox) and allow them to alter the text? I've read about overiding the ProcessCmdKey method for a Windows Forms TextBox (System.Windows.Forms.TextBox), and…
Randy Cleary
  • 705
  • 3
  • 11
  • 25
10
votes
1 answer

How to implement basic arrow-key movement in the console window with java?

I'm struggling with trying to find a way to implement basic arrow-key movement in a console window. I have come across a C# script which simply uses a switch statement and some variable's, but my teacher insists on using Java. From some other…
Thomas Linssen
  • 129
  • 3
  • 9
10
votes
1 answer

Controlling menu with the arrow keys and enter

I was trying to create an RPG. I have a problem with the menu where I can choose a class. I was trying to create an menu where you can control the directions with the arrow keys to the specific class which then get highlighted with the foreground…
Csharpnoob61
  • 103
  • 1
  • 5
10
votes
4 answers

Keyboard up and down arrows

I have one autocomplete search, in which by typing few characters it will show all the names, which matches the entered character. I am populating this data in the jsp using DIV tag, by using mouse I'm able to select the names. But I want to select…
rammohan
9
votes
6 answers

Javascript onChange arrow keys

Ok, so we all know that onChange is used to execute javascript code on a select statement when the option changes. However, if you change a select statement using the arrow keys, the onChange event is not called. Is there a way around this? Please…
teynon
  • 7,540
  • 10
  • 63
  • 106
9
votes
1 answer

Symfony : How to enable arrow keys (left / right) in QuestionHelper?

I have a custom command in my Symfony 3 project. This command ask some questions like the Bundle Name. $io = new SymfonyStyle($input, $output); $question = new Question('Please enter the name of your bundle: ', 'AppBundle'); $bundle =…
HooK
  • 91
  • 1
9
votes
3 answers

How to disable focus changes by arrow keys

I have a WPF window with a few controls (buttons, groupboxes, etc) and one big Viewport3D within a Border. The viewport shows a 3D scene and I want the arrow keys to move its camera around. The problem: the arrow keys always change the focus to…
xelor
  • 319
  • 3
  • 10
8
votes
4 answers

How do you make up and down arrows highlight items in a list? (jQuery)

I have a stack of
siblings and I want to let the user use the up and down arrows to move up and down the list and "highlight" an item. Only one item should be highlighted at any given moment. What's the easiest way to do this?
dan
  • 43,914
  • 47
  • 153
  • 254
8
votes
2 answers

React: How to shift focus using arrow keys? (TreeView)

I am looking for solution which allow to focus elements inside treeview using arrow keys. Currently, I have treeView (ul) and treeNode (li). Each treeNode may have their own treeView and so on. Every treeNode has tabIndex="0" property to add…
Roman Mahotskyi
  • 4,576
  • 5
  • 35
  • 68
8
votes
2 answers

illustrator moving objects using arrow keys

When i try to move an object in Adobe illustrator it gets moved by about 20 pixels instead of just 1 pixel. I normally use the arrow keys to move objects as i find it easy lining up items. I changed the art board settings but that did not help.
Marios
  • 101
  • 1
  • 1
  • 5
8
votes
3 answers

prevent "up arrow" key reseting cursor position within textbox

I recently added some predictive text input fields to the web-app I am supporting. Big deal, right? Not really, seems like if your web-app doesn't do this -- you are already behind the times and your end-users are complaining. (At least that's how…
user1492226
8
votes
3 answers

text navigation in jdb not working in bash

When I run jdb in bash the arrow keys produce weird garbage: up: ^[[A down: ^[[B left: ^[[D right: ^[[C So I can't use the command history, or correct a spelling mistake, because I can't navigate the text at all, which is very annoying. Is there a…
bug
  • 515
  • 1
  • 5
  • 17
7
votes
3 answers

JS ArrowDown addEventListener for several elements in loop (demo)

Have following listener for keyboard ArrowDown event(it's key code is 40): window.onload = function() { var itemsContainer = document.getElementById('cities-drop'); document.addEventListener('keyup',function(event){ if (event.keyCode == 40 &&…
sergionni
  • 13,290
  • 42
  • 132
  • 189
1
2
3
24 25