forked from 0x2620/oxjs
allow menu item to trigger native file dialog when pressing enter
This commit is contained in:
parent
7818d4deb6
commit
826eb5548d
3 changed files with 22 additions and 7 deletions
|
|
@ -100,6 +100,14 @@ Ox.FileButton = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
that.blurButton = function() {
|
||||
self.$input.blur();
|
||||
}
|
||||
|
||||
that.focusButton = function() {
|
||||
self.$input.focus();
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue