Skip to content

mpociot/TiAndroidAutofocus

Repository files navigation

TiAndroidAutofocus

Prevents TextFields in Android to autofocus

Usage

Simply create a View using this module above the first TextField occurence to prevent autofocus. That's it!

JS Usage

var win = Ti.UI.createWindow({
	backgroundColor:'white'
});
var autofocus = require('de.marcelpociot.autofocus');
win.add( autofocus.createView() );

win.add( Ti.UI.createTextField({
	width: 100,
	value: "I don't autofocus"
}) );
win.open();

Alloy usage

<View platform="android" module="de.marcelpociot.autofocus" />
<TextField value="No more ugly autofocus!" />

About

Prevents TextFields in Android to autofocus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published