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
7
votes
1 answer

iTerm2 get previous DIFFERENT command using up and down arrow keys

I found it irritating that if you run one command 5 times you have to press the arrow key 6 times to get the previous command. Is it some way to change this behavior? iTerm2 Build 1.0.0.20111020
bandola
  • 267
  • 1
  • 3
  • 13
7
votes
2 answers

macOS Sierra - A way to move the cursor when holding down arrow key

Is there a way to move the cursor when I hold down the left or right arrow key. In the former OSX versions it used to work. After I've updated to Sierra, my cursor is not moving when I hold down the arrow key.
stefan
  • 4,958
  • 4
  • 20
  • 37
7
votes
4 answers

Within an iOS app how do I detect that the user has pressed one of the arrow keys on their external keyboard?

I have a couple of iOS applications which present inherently linearly organised information, allowing the user to move forward and backward through the data with on-screen controls. I would like to allow users with the keyboard dock or a paired…
Phil Willoughby
  • 1,649
  • 12
  • 16
7
votes
1 answer

Pressing + in Visual Studio editor writes single ASCII character

I am using VS2013 as my IDE and ever since I installed it acts very oddly when pressing ALT and any of the ARROW keys. I use ALT+LEFT and ALT+RIGHT to navigate backward/forward which works in principal but once VS completes the jump it writes out a…
Sven M.
  • 509
  • 3
  • 16
7
votes
2 answers

VIM Custom arrow key mappings not working with window switching?

I've been trying to create a shortcut for switching between open window splits in vim, rather than having to use ctrl+w+[arrowkey] I would prefer to just be able to use ctrl+[arrow keys]. This is what I currently have in my vimrc: map
7
votes
2 answers

Are some keyboards more loquacious than others?

The lead developer says that when he uses my app, his keyboard beeps when he moves between TextBoxes on the TableLayoutPanel via the directional arrow keys. However, I hear no such aural activity. Here's my code: // Had to intercept Up and Down…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
6
votes
1 answer

How to make show/hide div with a toggle using CSS?

I created a menu div that would show/hide another div below it on mouse click. However, I need an arrow on the menu div to toggle on click. You know like how the arrow would be pointing to side, but toggles downward when the menu div is clicked and…
Ched Jose
  • 93
  • 1
  • 3
  • 8
6
votes
2 answers

Arrow key events not arriving

Basically, I have a form with a custom control on it (and nothing else). The custom control is completely empty, and the form has KeyPreview set to true. With this setup, I am not receiving any KeyDown events for any arrow keys or Tab. Every other…
Mike Caron
  • 14,351
  • 4
  • 49
  • 77
6
votes
4 answers

KeyDown recognizes the left and right directional arrow keys, but not up and down

With the code below, the Left and Right arrow keys function as expected, but the up and down arrows are not recognized (stepping through it, the first two conditions are met where appropriate, but the second two never are): private void…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
5
votes
3 answers

C# - Tetris clone - Can't get block to respond properly to arrow key combinations

I'm working on programming a Tetris game in Visual C# 2005. This is the most extensive program I have designed yet. I create a shape class and a block class to control the location, movement, and display of the different Tetris pieces. I have…
Daniel Waltrip
  • 2,530
  • 4
  • 25
  • 30
5
votes
1 answer

How to use the esc key to close lightbox page overlay

I have a question about a lightbox see my jsFiddle. Clicking on one of the images opens a bigger version of the painting as a page overlay. How to use the ESC key to close this page overlay? And how to use the arrow keys to move to the next…
5
votes
1 answer

jQuery Move div with arrow keys

I'm trying to move a div using the arrow keys. I have the following code which is not working for me. Do you see anything wrong with it. Check jsfiddle at http://jsfiddle.net/N5Ltt/1/ $(document).keydown(function(e) { switch (e.which) { case…
Pinkie
  • 10,126
  • 22
  • 78
  • 124
5
votes
2 answers

Using Key Bindings with Arrow Keys

I'm creating a game that uses the arrow keys to move a sprite. I've added key bindings for the arrow keys and the letter n, but arrow keys aren't working. Here's my code: public class MyPanel extends JPanel { Sprite sprite = new Sprite(); …
Eva
  • 4,397
  • 5
  • 43
  • 65
5
votes
1 answer

How to bind the slider with the arrow key inputs?

I have a slider control and all I wanted is to move the slider thumb with the arrow key inputs. Right now, I could see it moves with mouse inputs and PageUp/PageDown keys. But nothing happens with the arrow keys. How can I change this behaviour in…
Ratheesh Vijay
  • 171
  • 1
  • 3
  • 12
5
votes
1 answer

Using arrow keys in cocoa?

I was doing a little research into this, and I found this question. I implemented the code used there, but nothing happened. Here is the exact code I am using: .h file #import @interface Test : NSView…
Justin
  • 2,122
  • 3
  • 27
  • 47
1 2
3
24 25