keyboard

Android showing keyboard cancels animation

人盡茶涼 提交于 2019-12-22 12:22:22
问题 In my app a user can animate a view (fragment) on another view. A simple ObjectAnimator does its tranlateY trick and after the animation is complete the view is visible with TextViews and EditTexts. But when pressing an EditText the keyboard shows and for some reason my view, which was animated with ObjectAnimator, returns to its pre animated position. First I thought it was because the view gets redrawn (like orientation change) so I added "setRetainInstance(true);" but that doesn't work

Timed out waiting on IInputContextCallback with custom keyboard on Android

瘦欲@ 提交于 2019-12-22 10:25:40
问题 We've developed a custom keyboard for Android and we're facing a weird issue. The issue currently only happens on few devices and on our login website... But it causes our keyboard to hang for a very long time eventually giving the user the option to close or continue to wait. To be precise we have a custom keyboard which has a login page (fragment webview) that has slow response time for key inputs. Following stack trace is the important part: 11-17 09:35:07.535 5935-5935/xxx W

configure the left and right mac 'command' keys differently?

蓝咒 提交于 2019-12-22 09:50:04
问题 I'm wandering if I can set the right mac 'command' to act like the ctrl key, but keep the default functionality of the left 'command' key. Thanks. 回答1: There is a really awesome application called Ukelele (free) that is, unfortunately, unable to distinguish between left and right command keys. However, there is an even better application I recently found called "ControllerMate" that lets you do exactly what you want. You can find it here: http://www.orderedbytes.com/controllermate/ If you

Send key down / up events for number keys using AppleScript

流过昼夜 提交于 2019-12-22 09:39:30
问题 I need to send a key down / key up event for number keys to an application using AppleScript. However, the commands: key down "6" delay 1 key up "6" send the keystrokes as if they were coming from the number pad. I need them to be interpreted as coming from the number row at the top of the keyboard. I’ve also tried using (ASCII character 54) instead of a literal, without success. Note I need key down to be sent – sending a keystroke or key code will not do. 回答1: Try sending key down the

How do I disable Qt's behavior on Linux of capturing arrow keys for widget focus navigation

半世苍凉 提交于 2019-12-22 08:23:08
问题 I'm working on a Qt app that is developed primarily on MacOS, but that is then built and tested on Linux as well. We define a keyPressEvent() method in our main window class to respond to certain keyboard events. Among others, we respond to Qt::Key_Left, Qt::Key_Right and Qt::Key_Space. This works great on MacOS. On Linux, however, we never get these events. Doing some Googling (and confirming it with our app's behavior on Linux), it seems that the reason for this is that Qt uses these keys

How to remap keyboard key in c++ with LowLevelKeyboardProc?

拜拜、爱过 提交于 2019-12-22 08:17:58
问题 I need to remap some of keys like Left Alt but i just disable it so code for disable Left Alt look like this: LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam) { if (nCode == HC_ACTION) { KBDLLHOOKSTRUCT* p = (KBDLLHOOKSTRUCT*) lParam; if (p->vkCode == VK_LMENU) return 1; } return CallNextHookEx(hHook, nCode, wParam, lParam); } So I try to remap Left Alt to Left Ctrl and use function like keybd_event and SendMessageA but didn't get nothing. LRESULT CALLBACK

Browsing JButtons with Arrow Keys

百般思念 提交于 2019-12-22 08:07:16
问题 I've made a JButton array, which represent cards, there are 16 of them, 4 by 4. How can I browse among the JButton with the arrows on keyboard instead of the mouse, and how can I "click" on JButton by pressing ENTER instead of mouseclicking? Maybe there is another way of doing this instead of using JButton s? Best regards! 回答1: I have created a solution that will allow you to navigate buttons with the arrow keys and activate them with space and enter. Below is all of the code. No comments are

Android KeyBoard.Key disable iconPreview of special keys?

我的梦境 提交于 2019-12-22 07:00:29
问题 I customize my own soft keyboard by implementing the KeyboardView.OnKeyboardActionListener interface. When the keys are pressed, it will show a preview popup. My problem is how to disable the preview popup for special keys such as SHIFT and DELETE? I have tried to set the android:iconPreview attribute to null but it didn't work. <Key android:codes="-1" android:keyIcon="@drawable/key_shift" android:keyWidth="15%p" android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left" />

Keyboard is not working proper in ios7 (Xcode 6)

不想你离开。 提交于 2019-12-22 06:59:08
问题 I have recently installed Xcode 6 in OS X Mavericks.In iOS 8 my app is working fine. But in iOS 7 sometime keyboard does not appear when i tap on textfield or textview. Any ideas? 回答1: To fix this, on simulator, open the Menu: Hardware - Keyboard - Toggle software menu (make sure it's checked) link here 来源: https://stackoverflow.com/questions/25805689/keyboard-is-not-working-proper-in-ios7-xcode-6

Swift adding custom keyboard or numpad in app

女生的网名这么多〃 提交于 2019-12-22 06:36:09
问题 What types of restrictions is there when adding a custom keyboard or numpad in an app? I know that some apps requires you to enable keyboards in your system settings. I recently saw an app using this keyboard: The app does not require you to activate the keyboard. So how can I make my own custom numpad like this one? Feel free to share any tutorials/libraries thanks, 回答1: There's a great swift keyboard/calculator tutorial out there that will serve as a starting point for what you're doing: