Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing text of done button in keyboard

I know there is a question about this subject already but I think it's possible to change the text of the done button of a keyboard, because many of the apps I use are in french and the text of the done button is "accéder".

But I don't know how to do this?

like image 536
alex Avatar asked Sep 27 '10 18:09

alex


People also ask

How do I change the Done button on my Android keyboard?

First you need to set the android:imeOptions attribute equal to “actionDone” for your target EditText as seen below. That will change your 'RETURN' button in your EditText's soft keyboard to a 'DONE' button.

How do I get the Done button on my Iphone keyboard Swift?

addDoneKeyboardButton() — creates the keyboard done button using UIToolbar. Inside the toolbar, we create a UIBarButtonItem. You can name the button however you want, and you can add multiple buttons (depending on your needs). In other words, use this function to customize the toolbar.


1 Answers

You can't set it to arbitrary text, but you can make it a canned word by setting the returnKeyType on whatever text field or view is being used for editing. Possible values of UIReturnKeyType are here:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html%23//apple_ref/occ/intf/UITextInputTraits

These are generally localized with the app, though. If your app supports an "fr" localization, and the device is set to French, you should get the localized versions of the keyboard keys.

like image 90
Ben Zotto Avatar answered Oct 20 '22 12:10

Ben Zotto