Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19733] iOS9: Support "Continue" return key + new keyboard types

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-10-21T01:26:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2015-10-16T19:47:07.000+0000
Updated2015-11-23T17:27:55.000+0000

Description

iOS9 offers a new return key to show a "Continue" button. We should support it and provide a fallback for older devices. Also, we should support the two missing keyboards for twitter and websearch. *Demo*:
var win = Ti.UI.createWindow({
	backgroundColor : '#e0e0e0',
	layout: "vertical"
});

var label1 = Ti.UI.createLabel({
	top: 40,
	width: 300,
	text: "Use a keyboard optimized for twitter text entry, with easy access to the @ and # characters."
});

var field1 = Ti.UI.createTextField({
	backgroundColor: "#fff",
	top: 10,
	width: 300,
	height: 40,
	hintText: "Ti.UI.KEYBOARD_TWITTER",
  keyboardType: Ti.UI.KEYBOARD_TWITTER
});

var label2 = Ti.UI.createLabel({
	top: 40,
	width: 300,
	text: "Use a keyboard optimized for web search terms and URL entry. This type features the space and “.” characters prominently."
});

var field2 = Ti.UI.createTextField({
	backgroundColor: "#fff",
	top: 10,
	width: 300,
	height: 40,
	hintText: "Ti.UI.KEYBOARD_WEBSEARCH",
  keyboardType: Ti.UI.KEYBOARD_WEBSEARCH
});

var field3 = Ti.UI.createTextField({
	backgroundColor: "#fff",
	top: 40,
	width: 300,
	height: 40,
	hintText: "Ti.UI.RETURNKEY_CONTINUE",
	returnKeyType: Ti.UI.RETURNKEY_CONTINUE /* Will fallback to Ti.UI.RETURNKEY_DEFAULT on older devices */
});

win.add(label1);
win.add(field1);
win.add(label2);
win.add(field2);
win.add(field3);

win.open();

Comments

  1. Hans Knöchel 2015-10-16

    PR: https://github.com/appcelerator/titanium_mobile/pull/7310
  2. Chee Kiat Ng 2015-10-21

    CR and FT passed. PR merged.
  3. Eric Wieber 2015-11-23

    Verified implemented using: MacOS 10.11.2 (15C47a) Studio 4.4.0.201511182122 Ti SDK 5.2.0.v20151119213638 Appc NPM 4.2.2 Appc CLI 5.1.0 Ti CLI 5.0.5 Alloy 1.7.26 Arrow 1.3.22 Xcode 7.1 (7B91b) Node v0.12.7 Java 1.7.0_80 production Using the provided code, the continue keyboard (as well as the twitter and web search keyboards) is displaying properly and defaults to the return key if used with unsupported SDKs/iOS versions.

JSON Source