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
|
|
@ -80,7 +80,7 @@ Ox.MenuItem = function(options, self) {
|
|||
.html(
|
||||
self.options.file
|
||||
?
|
||||
Ox.FileButton(Ox.extend(Ox.clone(self.options.file), {
|
||||
that.$button = Ox.FileButton(Ox.extend(Ox.clone(self.options.file), {
|
||||
title: self.options.title[0],
|
||||
width: self.options.file.width
|
||||
})).bindEvent({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue