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

Javascript when holding down arrow keys?

I have this script to trigger some javascript. But the script does not support holding down the arrow keys. How can I make this work when I hold the arrow keys. document.onkeyup = KeyCheck; function KeyCheck() { var KeyID =…
Trevor Rudolph
  • 1,055
  • 4
  • 18
  • 42
5
votes
1 answer

Detect arrow key input in qt

How would I detect the pressing of one of the arrow keys in qt? Also, would the application still detect them if it is minimized?
a sandwhich
  • 4,352
  • 12
  • 41
  • 62
5
votes
2 answers

Fixing in bash vi input mode. Cannot type beyond last character

I'm trying to use vi mode in bash. via the .inputrc (on OSX): set editing-mode vi In vi insert mode, the right arrow key moves the cursor to the right, but it stops on the last character in the line. If the cursor is past the end of the line, it…
Saevon
  • 53
  • 6
5
votes
1 answer

PyQt not recognizing arrow keys

I am trying to write a (currently very) simple PyQt application, and wanted to allow users to navigate using the arrow keys, rather than clicking buttons. I have the basics implemented, and in my main QWidget, I override keyPressEvent, and right…
dwanderson
  • 2,775
  • 2
  • 25
  • 40
5
votes
6 answers

Create Up and Down arrow icons or buttons using pure CSS

I am trying to create below shown "up and down" control buttons using pure CSS and no Background image. But when I added the CSS for arrows in "li.className:after or li.className:before " the position of main boxes moved. Here is the Fiddle for the…
UID
  • 4,434
  • 11
  • 45
  • 75
5
votes
1 answer

Handle arrow keys from D-pad on WebView Google Tv app

I have built an Android app which loads a html page in WebView, and it is working ok, except the fact that actions should happen on D-pad arrow keys won't work. If I change action for arrows with other keys, it works. Loading the html page in web…
MariusR
  • 53
  • 1
  • 4
4
votes
2 answers

Press Up Arrow and Brings the Last Java Console Command

Currently I am on a Java project, which is in console driven. I want to realize a feature that when the user press up arrow in the command line of my program, the command line will show the last command that the user has run. I found something about…
Noah
  • 63
  • 1
  • 6
4
votes
3 answers

Press left and right arrow to change image?

So I have this simple slideshow:
slideshow
I have managed to make the images change when I click…
Owly
  • 575
  • 2
  • 6
  • 16
4
votes
1 answer

How can I support the arrow keys on UIWebView with a Bluetooth keyboard under?

Part of arrow keys don't do anything on some pages. For example on CodeMirror editor: http://codemirror.net/demo/fullscreen.html How do you support all arrow keys from an external keyboard in UIWebView?
Dmitry
  • 14,306
  • 23
  • 105
  • 189
4
votes
2 answers

How can I get auto-repeated keydown events in Firefox when arrow keys are held down?

I've got several editable divs. I want to jump through them by pressing arrow keys (38 and 40). Firefox 3 on Mac OS and Linux won't repeat the events on holding the key. Obviously only keypress events are supported for repetition. As the keys 38 and…
pex
  • 7,351
  • 4
  • 32
  • 41
4
votes
1 answer

How to use Term::ReadLine to retrieve command history?

I've the following script, which is almost the same of the sample in synopsis paragraph in documentation. use strict; use warnings; use Term::ReadLine; my $term = Term::ReadLine->new('My shell'); print $term, "\n"; my $prompt = "-> "; while (…
Zagorax
  • 11,440
  • 8
  • 44
  • 56
4
votes
2 answers

HBASE - select distinct query against the rowkey

I have a hbase table called "users", rowkey consists of three parts: userid messageid timestamp rowkey looks like: ${userid}_${messageid}_${timestamp} Given I can hash the userid and make the length of the field fixed, is there anyway I can do a…
Shengjie
  • 12,336
  • 29
  • 98
  • 139
3
votes
0 answers

Python OpenCV waitKey() and waitKeyEx() fail to read arrow keys after using Trackbar

I'm trying to make a simple program to navigate through the frames of a video. Those frames are already extracted as PNG files. I'm using OpenCV 4.5.4.58 alongside Python 3.7.11. I already made a program that could navigate through all my frames…
Ballisto
  • 31
  • 3
3
votes
1 answer

How to navigate between buttons using keyboard arrow keys?

I have an html structure like this
3
votes
2 answers

Python in VSCode: How do you run a previous command?

I'm kind of new to software development. Outside of VSCode, I can open up a terminal (let's say PowerShell), run python in it, type in a command (like 2+2), be able to click the up arrow key to find my previous command so that I can run it again.…