arrow-keys

Python shell: Arrow keys do not work on remote machine

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: >>> import os >>> ^[[A where the last character comes from arrow-up. Or, using arrow-left: ...

How to ignore arrow keys in C reading from stdin?

I'm reading from the standard input using the read() system call but there's a tiny thing that bothers me. I can't use the arrow keys... What I really wanted to do was to use arrow keys to go back and forth within the typed text but I think that's not that easy... So, what I at least want to do, is to ignore them. Right now, pressing an...

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 moveDown(), moveLeft(), and moveRight() functions for each shape (and corresponding canMoveDown...

Simple Javascript question: How do I prevent scrolling with arrow keys but NOT the mouse?

See title. 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 (via. jQuery), but having them cause the page to scroll in addition to that causes me problems. I may have known this at one time, but I don't remember it...

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 40 are only supported on keydown I'm kind of stuck. ...

how to disable page scrolling in FF with arrow keys

Hi All, I'm building a menu with topics and items.Each topic can be expanded and collapsed by clicking on it.My task is to make it possible to move through menu topics and items with the up and down arrow keys.I've done this already, but the problem is that when the page is bigger than the window, the page is scrolling when pressing the...

Using arrow keys with jQuery scrollTo

Hi, I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class "new" when a link is clicked. However, I would also like to be able to use the arrow keys to scroll up and down to the next/previous divs of the same class. I have looked all over the internet but have been unable to find out how...

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 test: $(document).keypress(function (eh){ alert(eh.keyCode); }; In Firefox, pressing a...

How can I identify and handle control characters and arrow keys in Perl?

I want to implement the command line features like in a linux terminal. I saw this in ftp command also. If I press tab I need to list the commands. If I press control characters I need to get that characters based on that I will do some action. And if I give any commands it should execute. For this I tried with Term::ReadKey that i...

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 between 2 modes: . and dash, regular arrows behavior, mean when a user press Control the tow ar...

NSTableView navigate with arrow keys

How can I navigate through my table view with the arrow keys. Much like setAction: or setDoubleAction, but instead of reacting to clicks, react with the arrow keys moving up or down through the table. ...

disable arrow key on flowplayer scrollable

i need to disable the arrow keys in a flowplayer.org scrollable i have a text input that i cant move between the letters due to the scroller moving when arrow keys pressed, i dont care to disable the scroller keys permanently. thanks link to scrollable link to forum to disable keys ...

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)?

How can I handle ArrowKeys and < (Greater Than) in a Javascript function? Which event and which code (charCode Or keyCode)? I am very confused how to do this. I have read this link very carefully, Events and keyCode+charCode, but I could not find any solution for my scenario. ...

Arrow key events not arriving

Test project which exhibits the problem: http://mike-caron.com/Testbed.zip 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 key that I hav...

How can I capture terminal arrow keys in ruby?

How can I capture arrow keys in a terminal without the user having to press "enter" after the arrow key? ...

Silverlight - tab navigation with arrow keys

How to cycle between controls with arrow keys. I want the same effect as I get with Tab key. Is it even possible? ...

how to set focus on NSMenu (make it get key events)?

I have a status menu with a NSSearchField and menu items. When search field is active and user presses up & down arrows, I'd like to start menu tracking, that is that the user will be able to move with arrow keys between menu items. I can catch moveUp and moveDown selectors. How can I cause the menu to become a key responder? Thanks, N...

To make control(focus) flow from a Button to top of a list view in Android.

Hi, My activity has a set of buttons on the left half of the screen and a ListView on the right. Initially the focus is on the first button. When I browse the buttons by pressing DOWN arrow key and then press the RIGHT arrow key, the focus does not go to the topmost list item. Instead, the list item correspondingly on the right gets fo...

increase number when I press arrow key on keyboard with javascript

Hi, I have a textbox has a numeric value. now what I want is to keep increasing that numeric value while im pressing and holding any of arrow keys. I know how to do this if I was pressing only one time. it will be increased by 1 only. but what If I want to keep increasing the value while i'm holding the arrow keys. how to do that? tha...

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 bluetooth keyboard to use the arrow keys to move back and forth as well. Since the apps are ...