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

jQuery 2.1 | Navigate through non-contiguous links within a list with arrow keys

I want to navigate with arrow keys within a list that contains same-class links enclosed within some li, something like the following:
0
votes
2 answers

How to make the arrows keys act as another keys?

In Silverlight project, how to make the left arrow act like . (dot), when a user press the left arrow in a textbox it will type . and also in the same way how to make the right arrow act like - ( dash) And I want to use the CTRL key to switch…
Sara
  • 21
  • 3
0
votes
1 answer

How to know at which position the blinking pipe character is in a string?

I would like to know if there are possible to know at which position of the input value is at when pressing a key. Say I have a text field. And I want to to something if the right-arrow-key is pressed only if they are…
user3065567
  • 71
  • 1
  • 1
  • 3
0
votes
1 answer

Python tkinter scrolling two TEXT widgets at the same time with arrow keys

I'm building a GUI that have 2 text widgets. (I mean it has a bunch of things in it but the sake of this question lets leave it at 2 text widgets). What I want to do is that when I scroll the one text widget with the arrow key the other text widget…
Geo
  • 23
  • 9
0
votes
1 answer

Disable PyQt Arrow Key Focus

I have a very simple PyQt application with some buttons and a checkbox. Right now pressing the arrow keys iterates focus over the buttons and the checkbox. I would like to override the arrow keys events and instead have it print which key you…
Luke
  • 61
  • 3
0
votes
1 answer

Android: How to place arrow keys (using images)

Just like in many games, I want to do something similar in my app. A set of arrow keys on the bottom left part of the screen so you can control the app. The thing is, each arrow would be an image. But how to position each of them and how to handle…
0
votes
2 answers

How to change values of div when press key down

I have made divs in my HTML that I use to draw bars with CSS. Now I want the to values change when the user presses the down arrow key. This is my JavaScript: var changeIdValue = function(id, value) { document.getElementById(id).style.height =…
Melissa
  • 719
  • 1
  • 6
  • 16
0
votes
1 answer

ListBox with WrapPanel - Remove item / arrow key navigation

I have a strange problem regarding my listbox / wrappanel arrow navigation. My Listbox :
Muby
  • 77
  • 1
  • 8
0
votes
1 answer

Tkinter simulating the up/down arrow keys

I need to make my own event handler that includes the standard up/down arrow keys' functionalities in a text widget. However, there are some quirks I have to program around somehow. You might think you could just add/subtract a line and it would go…
Brōtsyorfuzthrāx
  • 4,387
  • 4
  • 34
  • 56
0
votes
1 answer

Moving a gif with arrowkeys, causing error Uncaught TypeError: Object function (){throw"Ticker cannot be instantiated.";}

I am a beginner at javascript. Like, REALLY beginner status. My goal: I made a gif of a floating cat tied to a balloon. I would like to be able to move the gif around on a canvas using the arrow keys. Now, I have my gif on the canvas, and I can…
jennygee
  • 13
  • 2
0
votes
0 answers

Move Object and Viewport

So I have the following code: http://jsfiddle.net/PT22R/3/ It works great but I'd like to be able to move the viewport while the player moves so that I can fully see the object on the side. This is what I want to have when I move the player with…
WalkOfLife
  • 267
  • 1
  • 4
  • 14
0
votes
1 answer

Python-3.4.0 - arrow keys display special characters

I've just installed a new Python-3.4.0 on Debian 7.4. Every thing seems OK except when I use the arrow keys up / down to recall previous commands, the interpreter displays control characters. I remember that this feature was a specific program…
Emmanuel BRUNET
  • 1,286
  • 3
  • 19
  • 46
0
votes
0 answers

C# focus shifting

I am trying to enable scrolling on a picturebox. I have everything working except for one nagging little detail. The focus shifts in an inexplicable way to the wrong scroll bar with the first click of the arrow key. The picture box has two…
Terry H
  • 310
  • 4
  • 19
0
votes
2 answers

regarding output from arrow key and fflush(stdin)

As we know that arrow keys produce two outputs i.e. 224 and (72 or 80 or 75 or 77). CODE 1:- char ch,ch1; ch=getch(); ch1=getch(); printf("%c \n %c",ch,ch1); When in the above case, I input an arrow key then 224 is stored in ch and the…
kevin gomes
  • 1,775
  • 5
  • 22
  • 30
0
votes
3 answers

Displaying Up/Down Arrow C++ on Windows

So unfortunately from what I have read, there isn't a hex code for an up and down arrow. There is only a "friendly code."(See bottom of linked page) Does anyone know how to use this friendly code? Ideally, I just want a printf() or std::cout…
user2494298
  • 299
  • 3
  • 7
  • 23