dat.gui/elements/controller-string/controller-string.js
George Michael Brower d19dc2ef40 style
2014-09-07 21:31:51 -04:00

29 lines
376 B
JavaScript

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