dat.gui/elements/controller-string/controller-string.js
George Michael Brower a81d61ba1b merge
2014-09-07 21:38:29 -04:00

29 lines
363 B
JavaScript

/* globals Gui, Polymer */
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();
}
}
} );