dat.gui/elements/controller-string/controller-string.js
George Michael Brower c31ddef69f shared style
2014-09-03 12:52:28 -04:00

23 lines
324 B
JavaScript

Gui.register( 'controller-string', function( value ) {
return typeof value == 'string';
} );
Polymer( 'controller-string', {
click: function( e ) {
this.$.input.select();
},
keydown: function( e ) {
if ( e.keyCode == 13 ) {
this.$.input.blur();
}
}
});