dat.gui/elements/controller-string/controller-string.js

23 lines
324 B
JavaScript
Raw Normal View History

2014-08-27 00:01:15 +00:00
Gui.register( 'controller-string', function( value ) {
return typeof value == 'string';
} );
Polymer( 'controller-string', {
2014-09-03 16:52:28 +00:00
click: function( e ) {
2014-08-27 00:01:15 +00:00
2014-09-03 16:52:28 +00:00
this.$.input.select();
},
keydown: function( e ) {
if ( e.keyCode == 13 ) {
this.$.input.blur();
}
}
2014-08-27 00:01:15 +00:00
});