custom-keyboard

How to hide default Android keyboard when custom keyboard is visible?

杀马特。学长 韩版系。学妹 提交于 2020-01-07 03:03:29
问题 I have an Android app with Activity containing a TextView as below. <EditText android:id="@+id/textEdit1" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="8dip" android:paddingRight="8dip" android:lines="4" android:hint="My hint" android:layout_gravity="center_horizontal|center_vertical" android:gravity="left" android:selectAllOnFocus="true" android:textAppearance="?android:attr/textAppearanceSmall"/> When the user clicks within this TextView (and

How can I programatically constrain UIButtons in a UIView to proportional widths using NSLayoutConstraints

家住魔仙堡 提交于 2020-01-05 08:06:30
问题 I am trying to create a custom keyboard programatically. I have managed to get the functionality of the keyboard working but am struggling with setting the constraints programatically. I have managed to find code to constrain the buttons to be equal sizes in their rows but cannot customise it enough to set the width (or proportional width) of certain buttons. Here is a picture of the keyboard currently Each row is a separate UIView filled with UIButtons corresponding to each key. I then

How can I programatically constrain UIButtons in a UIView to proportional widths using NSLayoutConstraints

痞子三分冷 提交于 2020-01-05 08:06:10
问题 I am trying to create a custom keyboard programatically. I have managed to get the functionality of the keyboard working but am struggling with setting the constraints programatically. I have managed to find code to constrain the buttons to be equal sizes in their rows but cannot customise it enough to set the width (or proportional width) of certain buttons. Here is a picture of the keyboard currently Each row is a separate UIView filled with UIButtons corresponding to each key. I then

Proper implementation of handleInputModeList in Custom Keyboard

眉间皱痕 提交于 2020-01-03 03:10:53
问题 A new API has been added in iOS 10 to present the list of other keyboards the user can switch to - the same list that appears when users long press the globe on a system keyboard. The declaration of the function is as follows: func handleInputModeList(from view: UIView, with event: UIEvent) My question is, what's the proper way to generate a UIEvent to supply? I was planning to call this function using a UILongPressGestureRecognizer but this API doesn't reveal UIEvent s. 回答1: I was going

How to detect keyboard type changes with the size, type, suggestion bar height of new keyboard type?

点点圈 提交于 2020-01-02 05:21:41
问题 Is there any way to detect keyboard types changes with the size, type and suggestion bar height, change like from English keyboard to Hindi which contains some kind of suggestion bar (see screenshot). Normal English Keyboard First Problem After changing to Hindi LIPI - When just I changed, everthing is fine because size of english and hindi keyboard is same, but after start typing Hindi Lipi suggestion cover the TextField Second Problem After changing to Emoji - Emoji keyboard hight little

How can we use long press to delete whole words, for custom keyboards in iOS 8?

送分小仙女□ 提交于 2020-01-02 04:05:12
问题 As we know, the original keyboard in iOS can delete whole words by holding down the delete button (⌫) for an extended period of time. So how can we use the same functionality for custom keyboards in Swift, iOS 8? Note: I'm currently using proxy.deleteBackward() for deleting letters, and using: var gesture = UILongPressGestureRecognizer(target: self, action: "longPressed:") gesture.minimumPressDuration = 1.0 button.addGestureRecognizer(gesture) when the button is pressed for a greater amount

IOS Customkeyboard. How to set special character in custom keyboard

夙愿已清 提交于 2019-12-30 06:53:13
问题 I am working on custom keyboard for iphone 6 and 6Plus. I have develop logic for shift key active - inactive or 123 and abc key . but i want to also display custom symbol like apple keyboard shown. please check in image . currently i am able to change uppercase to lowercase and 123 to abc but how can i set this special character. NOTE:- I searched a lot demo on github but i am not able to see special character in any custom keyboard. Here is my logic for uppercase and ABC-123 Button. -(void

IOS Customkeyboard. How to set special character in custom keyboard

℡╲_俬逩灬. 提交于 2019-12-30 06:53:10
问题 I am working on custom keyboard for iphone 6 and 6Plus. I have develop logic for shift key active - inactive or 123 and abc key . but i want to also display custom symbol like apple keyboard shown. please check in image . currently i am able to change uppercase to lowercase and 123 to abc but how can i set this special character. NOTE:- I searched a lot demo on github but i am not able to see special character in any custom keyboard. Here is my logic for uppercase and ABC-123 Button. -(void

Text field stays under the custom keyboard in UIWebView for iOS 8

我只是一个虾纸丫 提交于 2019-12-25 02:34:47
问题 I'm creating a web App for iOS and I have a custom keyboard. When I use the default keyboard, it immediately shows the keyboard and the text field is above the keyboard. I would have the same result if I change the keyboard to my custom keyboard. But the problem is for the time that I gives the focus to the text field when my custom keyboard is enabled. It has some delay to load and when it loads, text field stays under the keyboard. Here is my code for custom keybaord: #import

Applescript to Map Esc to Caps Lock when tapped; Control to Caps Lock when pressed (macOS Sierra)?

妖精的绣舞 提交于 2019-12-24 06:45:43
问题 I am well aware of karabiner-elements which is still in development to enable this key mapping in macOS Sierra. However, at the current moment it doesn't work. My thought is that if I map Caps Lock to Control in Preferences/Keyboard/Modifier Keys that gets me half way there. I have seen some interesting things people have done with AppleScript here. I am hoping there is a simple way to achieve this via AppleScript. Its also worth mentioning that karabiner-elements is capable of swapping Caps