Silk-GUI / Silk

GUI for developers and Node OS
http://silkgui.com
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

Context menu #16

Open emanb29 opened 9 years ago

emanb29 commented 9 years ago

A good quick thing to fix would be making a custom context menu. Since ideally this will be for nodeOS, but will also likely be implemented in webkit-based applications, it's worth looking for a cross-platform solution. I know html5 specifications have an API for this (contextmenu attr/menu elem), though at the moment only firefox supports it. Still, there are workarounds with cancelling the rightclick action and replacing it with a

with absolute positioning

zodern commented 9 years ago

Silk will run in chrome on NodeOS, so the html5 won't work for now.

There are many jquery plugins. https://github.com/medialize/jQuery-contextMenu looks like a good option.

emanb29 commented 9 years ago

Yeah, I assumed we'd be running on some variant of Blink/webkit. jQuery-contextMenu could be an option, though the style is a bit inconsistent with the rest of Silk