[TIMOB-9687] Android: SearchBar: SearchBar added to TableView shows Next button on soft keyboard instead of Done or return button
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-06-26T12:14:43.000+0000 |
Affected Version/s | Release 2.1.0, Release 3.1.0 |
Fix Version/s | 2013 Sprint 13 API, 2013 Sprint 13 |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Satyam Sekhri |
Assignee | Biju pm |
Created | 2012-06-21T08:47:49.000+0000 |
Updated | 2017-03-21T22:17:56.000+0000 |
Description
A searchbar added to a tableview, when has focus on search field the soft keyboard shown has the button Next (indicating another field for input available) instead of a Done or Return button
Not a Regression. It occurs as far as 1.8.2
Steps to Reproduce:
1. Create an application with code below and launch the application
2. Click on the search field to bring up the soft keyboard
Actual: There is a button for Next on the keyboard. Clicking on Next removes focus for the search field but there is nothing else that shows focus. The keyboard now shows a Done or Return button
Expected: The keyboard should show the Done button when focus is on search field
Titanium.UI.setBackgroundColor('#000');
var data = [
{title:'Alan'},
];
var win = Ti.UI.createWindow();
var search = Titanium.UI.createSearchBar({
showCancel:false,
});
var tableview = Titanium.UI.createTableView({
data:data,
search:search,
filterAttribute:'title'
});
win.add(tableview);
win.open();
The issue can be reproduced with release 3.0.2 and latest master version 3.1.0 . Tested on device : ANDROID 4.0.4 (480x800 resolution) SAMSUNG galaxy SDUOS If we remove var data = [{title:'Alan'}]; it shows "DONE" button and I think its a bug ( already appcelarator documents said that there are several issues with the current implementation of SearchBar http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.SearchBar )
The issue cannot reproduce with the release master 3.2.0 Tested with: Titanium SDK version: 3.2.0 Tested on Device: Samsung galaxy s duos Android version: 4.0.4
Closing ticket as the issue cannot be reproduced and due to the above comments.