keyboard

How to get iPhone OS 3.1 muffled keyboard sound?

你。 提交于 2020-01-01 05:03:05
问题 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); AudioServicesPlaySystemSound(soundID); // we don't dispose of the sound to keep the sound in the cache for the next time //AudioServicesDisposeSystemSoundID(soundID); In iPhone OS 3.1, however, the keyboard

Change between dark and light keyboard iOS7

三世轮回 提交于 2020-01-01 04:10:13
问题 In iOS7 we have both a dark and a light keyboard. Is it possible for me to change between these in my app by code? 回答1: textfield.keyboardAppearance = UIKeyboardAppearanceDark; 回答2: in Swift 3: textfield.keyboardAppearance = UIKeyboardAppearance.dark 回答3: For anyone else that finds this question from google, you can also make the keyboard dark from the storyboard as well. 来源: https://stackoverflow.com/questions/19272441/change-between-dark-and-light-keyboard-ios7

Dvorak typers, how do you handle shortcuts like Ctrl-C?

天大地大妈咪最大 提交于 2020-01-01 04:07:53
问题 Do you change the key binding in the OS to be, i.e., Ctrl-Q? Do you manage to stretch your left hand to the C key? Do you use right ctrl and press shortcuts with your right hand? 回答1: When I switched to Dvorak, I was using primarily Ctrl + Ins and Shift + Ins for copy/paste. Now I use Ctrl + C and Ctrl + V and other program-specific shortcuts, but I have just learned to use them in their "weird" locations. A similar question was asked on SuperUser, with the following answers: Use an

What is the difference between an SDL physical key code and an SDL virtual key code?

社会主义新天地 提交于 2020-01-01 04:06:08
问题 The struct SDL_Keysym has SDL_Scancode and SDL_Keycode members. What is the difference between them? The documentation does not really clear it up for me. I tried both and they seem to do the same thing. 回答1: See the SDL documentation. Scancodes represent the physical position of the keys, modeled after a standard QWERTY keyboard, while Keycodes are the character obtained by pressing the key. On an AZERTY keyboard, pressing A will emit a 'Q' scancode and an 'a' keycode. 回答2: Generally,

Developing my own virtual keyboard for Windows 7 Desktop

与世无争的帅哥 提交于 2020-01-01 03:39:11
问题 I would like to build my own virtual keyboard for my windows 7 tablet. I am not starting from zero in programming; I just have no idea on where to start to make a system level device like a virtual keyboard. Is there a good article or SDK for this? 回答1: You'll need to write a driver in order to truly get a virtual keyboard. Keyboard drivers cannot be written in C#. Drivers are written in C (not even C++; just C), and they use the Windows Driver Kit for development. There is insufficient

Close keyboard when scrolling in dropdown on autocompletetextview in Android

旧时模样 提交于 2020-01-01 03:22:06
问题 I have an autocompletetextview which I have linked it to a webservice so it shows me suggestions as I type. Now how can I hide the soft keyboard when the user starts scrolling through the autocomplete dropdown? I looked through the net but didnt find any method to detech touches on the autocomplete dropdown. 回答1: The best solution I could come up for this, is hiding the keyboard when the user starts scrolling the list and showing the keyboard again, if the user touches on the textview again.

Ignore mouse and keyboard events in Qt

随声附和 提交于 2020-01-01 02:34:08
问题 In Qt, how can I ignore all mouse and keyboard events and later stop ignoring them? That is: click a button, ignore all events in children; click again, not ignore. Is that clear? I have the following lines, but maybe I'm doing something wrong: setAttribute(Qt::WA_TransparentForMouseEvents); setFocusPolicy(Qt::NoFocus); 回答1: Dont use setFocusPolicy(Qt::NoFocus); and it will propagate events to the parent. Use only setAttribute(Qt::WA_TransparentForMouseEvents); 回答2: You can use Events'

Android keyboard not working in webview after a validation

坚强是说给别人听的谎言 提交于 2019-12-31 04:30:11
问题 I have an android application , which opens a Jquery mobile site in webview . This page contains almost 20 form fields. Keyboard works well , i can able to give input until i type 6 digit number in a input[type=number] box which has a maxlength=5 attribute. After this keyboard stops working . when i click a element , get focused and keyboard popups but it is not getting the value from keyboard what might be the problem ? how to get rid of this ? Main Activity mWebview = new WebView(this);

Custom keyboard - Android

假装没事ソ 提交于 2019-12-31 04:12:38
问题 Is there any known combinations of inputTypes on an inputText that would give a Num-pad keyboard with special characters such as $ , * , # and & . I am trying to allow the user to input a number and that field could take the mentioned characters as well. I have tried many but none seem to be giving the required output. Would I have to create my own custom keyboard for this? Since my request is very specific to certain special characters please do not mark this as a duplicate question. Thanks

Input connection for numeric type keyboard

♀尐吖头ヾ 提交于 2019-12-31 03:47:09
问题 I did my custom pin-code view class StarsPasswordView : LinearLayout { constructor(context: Context, attrs: AttributeSet, defStyle: Int) : super(context, attrs, defStyle) { init(context, attrs) } val passwordHolder = SpannableStringBuilder() var count fun init(context: Context, attrs: AttributeSet?) { orientation = HORIZONTAL isFocusable = true isFocusableInTouchMode = true gravity = Gravity.CENTER val attr = context.obtainStyledAttributes(attrs, R.styleable.StarsPasswordView, 0, 0) count =