1
0
Fork 0
forked from 0x2620/oxjs

allow menu item to trigger native file dialog when pressing enter

This commit is contained in:
rlx 2012-03-24 11:04:27 +00:00
commit 826eb5548d
3 changed files with 22 additions and 7 deletions

View file

@ -100,6 +100,14 @@ Ox.FileButton = function(options, self) {
}
}
that.blurButton = function() {
self.$input.blur();
}
that.focusButton = function() {
self.$input.focus();
};
return that;
}