mirror of https://github.com/rancher/ui.git
Allow tab to go past a slider
This commit is contained in:
parent
95fe050d35
commit
c573f15117
|
|
@ -179,23 +179,31 @@ export default Ember.Component.extend({
|
|||
},
|
||||
|
||||
keyDown: function(event) {
|
||||
var handled = false;
|
||||
switch ( event.which )
|
||||
{
|
||||
case C.KEY_LEFT:
|
||||
this.decrementProperty('value', this.get('step'));
|
||||
handled = true;
|
||||
break;
|
||||
case C.KEY_RIGHT:
|
||||
this.incrementProperty('value', this.get('step'));
|
||||
handled = true;
|
||||
break;
|
||||
case C.KEY_UP:
|
||||
this.set('value', this.get('valueMax'));
|
||||
handled = true;
|
||||
break;
|
||||
case C.KEY_DOWN:
|
||||
this.set('value', this.get('valueMin'));
|
||||
handled = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if ( handled )
|
||||
{
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
valueChanged: function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue