Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9687] Android: SearchBar: SearchBar added to TableView shows Next button on soft keyboard instead of Done or return button

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-06-26T12:14:43.000+0000
Affected Version/sRelease 2.1.0, Release 3.1.0
Fix Version/s2013 Sprint 13 API, 2013 Sprint 13
ComponentsAndroid
Labelsapi, qe-and060112
ReporterSatyam Sekhri
AssigneeBiju pm
Created2012-06-21T08:47:49.000+0000
Updated2017-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();

Comments

  1. Shameer Jan 2013-02-25

    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 )
  2. Biju pm 2013-06-26

    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
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source