1
голосов
3ответов
1016 просмотров

iPhone Keyboard Filter Question

I want to limit the character users can type in iPhone's keyboard, so I created an array of my own. e.g. The array including 0~9 and a dot to enable users to type a price. Then I can return NO for -(BOOL)textField:shouldChangeCharactersInRange:replacementString: if the replace string is not in th...

10
голосов
2ответов
5118 просмотров

.Net KeyEventArgs return vs enter

Have this in a c# .net application: string key = e.KeyCode.ToString(); in .net 1.1 key = "enter" in .net 3.5 key = "return" my question is why are they different?

7
голосов
1ответов
3686 просмотров

Keyboard remapping with more modifiers

I'm looking for a way to add one more "layout" to my keyboard. I'm already using a layout that uses altgr for local alphabet letters. What I'd like to add is a mirrored righthand-side keyboard that's activated with the caps-lock (one described in http://xkcd.com/mirrorboard.xkb) Unfortunately IS...

6
голосов
3ответов
7409 просмотров

How to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations

Here is what I am trying to accomplish: To Copy, press and release Caps Lock ONCE To Paste, press and release Caps Lock TWICE, quickly To Cut, press Ctrl+Caps Lock The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next t...

0
голосов
1ответов
2074 просмотров

how to fill up numbers in a form field via a popup key pad(using Javascript/AJAX)

I have a small project, wherein I need to develop a keypad with all the digits+backspace+decimal (all as buttons). These digits when clicked should populate a form field (say a text box). This keypad should be located next to the form field as a link. The keypad should be preferably Javascript/A...

4
голосов
3ответов
6837 просмотров

Get keyboard status in WPF Application in Main-Method during startup

When my application starts up in the static void Main method I want to determine if a key like Alt or Ctrl is pressed and then start the Application in some kind of Option-Mode. How can I find out if a key is pressed during startup? I found some samples already but they all import a windows dll,...

3
голосов
4ответов
5701 просмотров

How to detect if the delete key was pressed in Actionscript 3?

How do I determine if the delete key was pressed using actionscript? addEventListener(KeyboardEvent.KEY_UP, onKeyUp); ... function onKeyUp(event:KeyboardEvent):void { trace(event.keyCode); } The above code yields no value when delete, backspace, enter, and other command keys are pressed....

4
голосов
3ответов
9032 просмотров

How do I read events from a HID device under Ubuntu Jaunty?

I have a Linux USB HID device (a Hama MCE), and I can read its events manually by reading cat /dev/input/event7 and cat /dev/input/event8. Whenever I press a key on the device, a few bytes become available for reading with one of the cat commands above. I have a default installation of Ubuntu Jau...

3
голосов
1ответов
237 просмотров

D 1.0 (Tango) Move mouse; simulate keyboard presses etc

Hey, I'm using D 1.041 with Tango 0.99.8 and was wondering how I would go about moving the mouse and simulating keyboard presses and getting infos from the screen, for example the color of a specific pixel on a specific coordinate. I'm using Windows. Any help would be greatly appreciated. I want...

7
голосов
4ответов
2509 просмотров

How to get iPhone OS 3.1 muffled keyboard sound?

I have added the iPhone's Tock sound to my own custom keyboard like this: NSString *path = [[NSBundle bundleWithIdentifier:@"com.apple.UIKit"] pathForResource:@"Tock" ofType:@"aiff"]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID); A...

2
голосов
4ответов
2647 просмотров

using mouse left, right, up, down with galleria javascript

i am playing with this library, Galleria, which is pretty neat. here is the url below: http://devkick.com/lab/galleria/ but i can't see anyway to move from one thumbnail to another with the keyboard (right, left, etc) . . has anyone used this library and got this working?

1
голосов
2ответов
1718 просмотров

iPhone keyboard-button style for any UIView / UIButton?

I have a custom keyboard in my app and I'd like to have it look similar to the original iPhone keyboard (especially the buttons), just like it has been realized in Twitterrific, for example. Can you point me to a resource where I could find such code, either as a custom drawRect method or as a TT...

0
голосов
1ответов
370 просмотров

Capturing keycodes in shell?

I am writing my own shell and need to implement a history feature where up and down arrow keys show history of commands executed. I need to find out when up and down keys are pressed. How do i do this?

2
голосов
1ответов
194 просмотров

Workaround for AS3 language bug?

Does anyone know how to fix the bugs in Actionscript / Flash regarding keyboard input of European characters? Entering, for example portuguese characters, works fine on PC, but not MAC, this bug is on both Flash 9 and 10. These does not work: Á, Â, Ã, À, Ç, É, Ê, Í, Ó, Ô, Õ, Ú. Works sometim...

1
голосов
1ответов
383 просмотров

Program new functionality for zoom button on Microsoft Natural Ergonomic Desktop 7000

I just bought a new keyboard and mouse (Microsoft Natural Ergonomic Desktop 7000) and it has a neat little zoom lever in the middle of the keyboard. What I'd like to do is write a little program (in C# or Python, for use on Windows Vista) which makes the zoom button act like a scroll button inste...

112
голосов
20ответов
116303 просмотров

How can I programmatically check whether a keyboard is present in iOS app?

I need to check the condition of keyboard visibility in my iOS app. Pseudocode: if(keyboardIsPresentOnWindow) { //Do action 1 } else if (keyboardIsNotPresentOnWindow) { //Do action 2 } How can I check this condition?

4
голосов
1ответов
1216 просмотров

allow users to switch between input languages inside a j2me java midlet keyboard qwerty E71 and such

We have a midlet that needs to allow the user to switch input languages on the fly (its a dictionary type app) between several languages (say English to Arabic etc). All was charming in the "old days" with the numeric keypad, we handled the input ourselves matching 2 clicks on the 5 to feed the c...

1
голосов
1ответов
372 просмотров

How to determine the names of all installed keyboard layouts?

To determine the name of the active keyboard layout, one can get its "numeric name" by invoking GetKeyboardLayoutName and then looking it up under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\{0}\Layout Text. However, inexplicably, there appears to be no way to convert th...

0
голосов
1ответов
116 просмотров

Map some keystroke combination to the arrows

I'm tired of moving my hands to reach for the arrows in the keyboard. So I'd really like to be able to use something like Ctrl+Alt+{I, K, J, L} to do the same as the {Up, down, left, right} keys, respectively. Having this configured under Windows for Eclipse would be enough for my use case, but ...

3
голосов
4ответов
7360 просмотров

Overriding the F1 key in FF, chrome, ie. Is F1 on ie8/chrome on keyup and in FF on keypress? What about <tab> in an input field?</tab>

I'm creating namespaced events with jquery. When I use the following function with code=112, a function, bool=false, everything works fine in FF and the F1 key submits to my function and the event does not bubble up to open the firefox help in a new tab. function bindKeyFunc(code, func, bool){ ...

6
голосов
4ответов
10679 просмотров

iphone keyboard without textview

is it possible to bring up the keyboard in an iphone app without a textview? or will i have to have an invisible textview? if so, how do you programatically create a textview and then bring up the keyboard (without the user having to tap the textview)? the only examples i can find use interface ...

0
голосов
4ответов
1817 просмотров

javascript : key validation

im using javascript to validate keys in textbox. it is not working :( function numeric(e) { return ((e.keyCode == 8) || (e.keyCode == 9) || (e.keyCode &gt; 47 &amp;&amp; e.keyCode &lt; 58) || (e.keyCode &gt; 36 &amp;&amp; e.keyCode &lt; 4...

78
голосов
5ответов
147537 просмотров

Simulate Keypress With jQuery

Using jQuery, how can I simulate (trigger?) a KeyPress when a link is clicked? For example, when a user clicks the following link: &lt;a id="clickforspace" href="#"&gt;Click Here&lt;/a&gt; Then, by clicking the link, it would be as if they pressed the "spacebar" on their keyboard. Something ...

16
голосов
4ответов
9356 просмотров

Detecting Keyboard Hooks

Is there a way to detect which programs or modules are listening to a keyboard hook? By Sysinternals maybe?

3
голосов
5ответов
3631 просмотров

Can't get rid of the keyboard in UITextView

I have a table and in one of the cells I keep a UITextView. When the user taps it the keyboard appears. I was trying various ways to get rid of it. My first approach was to detect a tap on the table cell of the UITextView, but since the text view takes most of it, it's not suitable. Then I tried ...

1
голосов
1ответов
1051 просмотров

How to identify the keyboard keys using C#

I have an C# application runing at the back ground. Now i want to stop this application when the system is locked. how can i do that. Any help regarding this is really appreciated. Thanks Hougen for the solution. could you please suggest me should we include any Dlls to handle "Microsoft.Win32.S...

0
голосов
1ответов
1385 просмотров

FancyBox Callback Keydown

I have been working on this code, and I can't seem to figure it out. Fancybox's callbacks don't seem to work at all. I have the keyboard bound to the pagination for this gallery. But I want to unbind the keyboard from the table when fancybox opens. When fancybox opens nothing changes.... What to...

0
голосов
3ответов
2303 просмотров

How to remap a keyboard key using Java Swing?

How do I remap a key on the keyboard using Java so that I can give the key a new meaning?

3
голосов
1ответов
1150 просмотров

What is the correct and culture independent way to handle Key in WPF?

I'm quite confused about handling of Key http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx in a KeyEventArgs. For example: I want to handle colon key (made on my Italian keyboard with dot + Shift), so I write some code like this if ( e.Key == Key.OemPeriod &amp;&amp; e.Keyboa...

9
голосов
3ответов
3012 просмотров

How to send keyboard and mouse commands to the underlying operating system using Ruby?

Is there an operating system neutral way for Ruby to send keyboard and mouse events to the underlying operating system? One obvious (to me) approach is to use the Ruby/Java bindings and use java.awt.Robot, but that just seems silly.