keyboard

How to change android keyboard key font?

风流意气都作罢 提交于 2019-12-28 05:47:06
问题 How can I change the default font for keys of keyboard I am writing in android (Eclipse)? Thank you 回答1: One solution is to use keboardView.java instead of android.inputmethodservice.KeyboardView . You also need to change paint.setTypeface(Typeface.DEFAULT_BOLD) to paint.setTypeface(my font) and you must add attrs.xml to your project. 回答2: I found an answer : Implemented onDraw... @Override public void onDraw(Canvas canvas) { super.onDraw(canvas); try{ onBufferDraw(); }catch(Exception ex){ }

Multiple keyboards and low-level hooks

我与影子孤独终老i 提交于 2019-12-28 05:29:06
问题 I have a system where I have multiple keyboards and really need to know which keyboard the key stroke is coming from. To explain the set up: I have a normal PC and USB keyboard I have an external VGA screen with some hard-keys The hard keys are mapped as a standard USB keyboard, sending a limited number of key-codes (F1, F2, Return, + and -) I have a low-level hook (in C# but actually calling upon Win32 functionality) which is able to deal with the input even when my application is not

Get UITableView to scroll to the selected UITextField and Avoid Being Hidden by Keyboard

笑着哭i 提交于 2019-12-28 01:43:17
问题 I have a UITextField in a table view on a UIViewController (not a UITableViewController ). If the table view is on a UITableViewController , the table will automatically scroll to the textField being edited to prevent it from being hidden by the keyboard. But on a UIViewController it does not. I have tried for a couple of days reading through multiple ways to try to accomplish this and I cannot get it to work. The closest thing that actually scrolls is: -(void) textFieldDidBeginEditing:

Xcode iOS 8 Keyboard types not supported

非 Y 不嫁゛ 提交于 2019-12-27 11:39:25
问题 I have a UITextField Ctrl-dragged as an @Outlet in my .swift class. Now in viewDidLoad i'm using this code self.myTextField.keyboardType = UIKeyboardType.DecimalPad When i launch my app on simulator and click on the UITextField i got this log Can't find keyplane that supports type 8 for keyboard iPhone-Portrait-DecimalPad; using 2617181025_Portrait_iPhone-Simple-Pad_Default I have no crash or something but the keyboard is not displayed. I also tried to set it from Storyboard but it's the same

Xcode 6: Keyboard does not show up in simulator

拜拜、爱过 提交于 2019-12-27 10:34:51
问题 The keyboard does not show up when I run the simulator and click in the UITextView. How do I re-enable the keyboard? It used to work but now it doesn't - I don't know what I might have clicked by accident... any tips would be appreciated! 回答1: I had the same issue. My solution was as follows: iOS Simulator -> Hardware -> Keyboard Uncheck "Connect Hardware Keyboard" Mine was checked because I was using my mac keyboard, but if you make sure it is unchecked the iPhone keyboard will always come

Identify Special key keycode

馋奶兔 提交于 2019-12-25 16:59:17
问题 I am using a windows 8 laptop. My old laptop had a key combo, fn+f5, which would make the computer go to sleep. My new laptop has a power button on the side that acts like the one on your phone, it puts the PC to standby/sleep. But i don't like hardware buttons because they wear out. I plugged in a logitech keyboard that has a dedicated key with the power button symbol and when you press it, it does the same thing. (i did not install any software or drivers btw, just plugged it in) My goal is

How to make view change after keyboard open/close event

有些话、适合烂在心里 提交于 2019-12-25 14:12:11
问题 From readings, I have the height of the soft keyboard with the onSizeChanged method. What I want to do is to display a list in place of the soft keyboard when it is closed, and remove the list when the keyboard is required again. The way I'm doing it at the moment is that when a button is pressed, a list will be made visible and the keyboard dismissed using the InputMethodManager. The problem in the button's onClick method, I set the list to be visible, but the keyboard hiding animation is

How to make view change after keyboard open/close event

喜你入骨 提交于 2019-12-25 14:12:07
问题 From readings, I have the height of the soft keyboard with the onSizeChanged method. What I want to do is to display a list in place of the soft keyboard when it is closed, and remove the list when the keyboard is required again. The way I'm doing it at the moment is that when a button is pressed, a list will be made visible and the keyboard dismissed using the InputMethodManager. The problem in the button's onClick method, I set the list to be visible, but the keyboard hiding animation is

disable the keyboard on textbox tap on windows phone

寵の児 提交于 2019-12-25 11:57:27
问题 okay, so i am now very frustrated about this topic on google, because no one asks the right questions. i have a textbox on my windows phone 8 applications right. now once i click on that textbox the SIP keyboard pops up(that part i get, it is done by the OS). now what i want to do is once i click on the textbox i dont want the SIP to open up , cause it will navigate to a another page, but i cant make it a button cause the user can edit the info in the textbox once they chose the data from the

WPF Context menu disappears when Key.App is released

人走茶凉 提交于 2019-12-25 11:57:09
问题 I got a problem with context menu when i open through "Appkey" please refer this link for same issue for reference. Here i did't handle the event through keyUp or Keydown , but through XAML Commandbinding and Inputbinding i'm opening the context menu in codebehind, my problem is how to make context menu remain open even when the key is released. <UserControl.CommandBindings> <!--Custom Commands--> <CommandBinding Command="my:ThumbnailImages.CustomCommandContextMenu" Executed="OpenContextMenu