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
235
votes
25 answers

Seeing escape characters when pressing the arrow keys in python shell

In shells like the interactive python shell, you can usually use the arrow keys to move around in the current line or get previous commands (with arrow-up) etc. But after I ssh into another machine and start python there, I get sessions like: >>>…
Frank
  • 64,140
  • 93
  • 237
  • 324
113
votes
4 answers

Disable arrow key scrolling in users browser

I'm making a game using canvas, and javascript. When the page is longer than the screen (comments, etc.) pressing the down arrow scrolls the page down, and makes the game impossible to play. What can I do to prevent the window from scrolling when…
Kaninepete
  • 1,357
  • 2
  • 10
  • 12
86
votes
1 answer

How to speed up the left and right arrow keys for editing text?

Is it just me, or do other people find that the left and right arrow keys on MacOS are unusually slow for editing text? Compared to my Windows machines, positioning the cursor with left/right arrow keys seems to take twice as long on the Mac. The…
Blue
  • 1,196
  • 1
  • 9
  • 7
84
votes
6 answers

Arrow keys in Putty returning ^[[A ^[[D ^[[B instead of moving the cursor

Has anyone else ever had this error in PuTTy? For example, pressing the Up Key now produces: >>> ^[[A Google doesn't let you search for special characters so I'm stumped at finding existing version of this problem. EDIT: So this happened after I…
LittleBobbyTables
  • 4,361
  • 9
  • 38
  • 67
53
votes
11 answers

getch and arrow codes

I'm writing a programm that's using getch() to scan for arrow keys. My code so far is: switch(getch()) { case 65: // key up break; case 66: // key down break; case 67: // key right break; case 68: …
qwertz
  • 14,614
  • 10
  • 34
  • 46
35
votes
3 answers

How do I prevent scrolling with arrow keys but NOT the mouse?

Since I'm using jQuery, any solution via that would work too. Ideally, I'd like to know both, though. I already have the arrow keys bound to another function on my page (using jQuery), but having them cause the page to scroll in addition to that,…
Daddy Warbox
  • 4,500
  • 9
  • 41
  • 56
28
votes
1 answer

jQuery UI Autocomplete DownArrow UpArrow

I am having some issues with jQuery Autocomplete and moving DownArrow and UpArrow ? The problem seems to be that focus: function (event, ui) { $('#autocomplete-input').val(ui.item.label); } This…
Andy
  • 18,723
  • 12
  • 46
  • 54
27
votes
7 answers

C++ Detect when user presses arrow key

I have been having a problem with detecting arrow key presses in my C++ console application. I have tried everything I have found, both here and on other tutorial sites, but all of them give me the same thing whenever I press the arrow: Process…
25
votes
2 answers

Is it possible to use arrow keys in OCaml interpreter?

Everytime I use these keys in the interpreter I keep getting symbols like this appearing: [[D^[[C I'm using Linux Mint 12 in ZSH, however I'm getting the same result in Ubuntu with bash. Also, same thing in ssh.
Pacane
  • 20,273
  • 18
  • 60
  • 97
18
votes
4 answers

Navigate through list using arrow keys? (JavaScript/JQ)

I can't seem to find an answer to how to accomplish this, yet it's a feature I've seen several times. Essentially I'm echoing out a list and I would like to create the ability to highlight and select these items using arrow keys/enter. Can someone…
Ian
  • 1,850
  • 6
  • 23
  • 38
16
votes
7 answers

Arrow up and down does not work any more in Perl debugger and CPAN client

I used to use Active Perl on my Mac OS X (v 10.7.5) and then I switched to the one provided via mac ports (v 5.12.4). Now when I run the CPAN client or the perl debugger, I cannot access the history using ArrowUp and ArrowDown, what is shown at the…
agaved
  • 258
  • 2
  • 9
15
votes
4 answers

Detecting Arrow key press in IE via javascript/jQuery

I'm trying to set up a menu that can be navigated via the arrow keys. I have this working fin in Firefox. Trying to get it to work in IE8 and after a bit of struggle, found that it was because IE8 wouldn't register a keypress on the arrows. To…
DA.
  • 39,848
  • 49
  • 150
  • 213
14
votes
4 answers

why doesn't the jquery change event fire when i use the up or down arrows on a select?

I am listening to the change event of a select dropdown using jquery and the livequery plugin. $(".myDropdown").livequery("change", function () { }); one thing i noticed (i am using firefox) is that The event handler doesn't fire from hitting the…
leora
  • 188,729
  • 360
  • 878
  • 1,366
14
votes
2 answers

Simulate left and right arrow key event with javascript

I'm using the slide.html5rocks.com framework and I'm trying to use to img tags inside of a tag links and I can't get the JavaScript onclick to simulate the left and right key events to change slides
Trevor Rudolph
  • 1,055
  • 4
  • 18
  • 42
13
votes
2 answers

Checkboxes with bash script

I am trying to do a very simple bash script which emulates the behavior of checkboxes in appearance! I want it to show some options and move the cursor to the next checkbox according to the key press of the left or right arrow keys. I've already…
Metafaniel
  • 29,318
  • 8
  • 40
  • 67
1
2 3
24 25