enyojs/onyx — pull request #69 by ryanjduffy (2012-08-04 18:50:04+00:00)
Title: added alwaysLooksFocused property to onyx.InputDecorator

Here's a quick test for the pull as well

enyo.kind({
name:"ex.App",
components:[
{kind:"onyx.Groupbox", components:[
{name:"id1", kind:"onyx.InputDecorator", alwaysLooksFocused:true, components:[
{kind:"onyx.Input", style:"width:100%", placeholder:"Always looks focused"}
]},
{name:"id2", kind:"onyx.InputDecorator", alwaysLooksFocused:true, components:[
{kind:"onyx.Input", style:"width:100%", placeholder:"Always looks focused until first focus, then toggles", onfocus:"focused2"}
]},
{name:"id3", kind:"onyx.InputDecorator", components:[
{kind:"onyx.Input", style:"width:100%", placeholder:"Looks unfocused until first focus, then stays focused", onfocus:"focused3"}
]}
]}
],
focused2:function(source, event) {
this.$.id2.setAlwaysLooksFocused(false);
},
focused3:function(source, event) {
this.$.id3.setAlwaysLooksFocused(true);
}
});