ruby - Right clicking with a Webkit view -


I am currently working on a project in Ruby which is basically a web-app format of web-app And there are some natural flaw advantages for the web, however, we want to be able to package our applications and deliver in a standalone format.

Ideally, we essentially want to create an .exe package for Mac and an .exe for Windows that opens a webkit view, connects to our servers and we provide it with HTML Does what we do it.

So far it has not worked so hard, though it is beyond our current expertise (especially Windows development), but all is worth moving.

The issue is that we want to enable right-click, as you can in the iTunes Store (which is a webkit view that has custom events for custom clicks). We also want to give our right-click special meaning in our application, and also make it context sensitive.

What do we do? What do we want from our webpage or on behalf of our original app?

"post-text" itemprop = "text">

?

If you are doing this with a coke app, you can only apply the webview: context menu toolfunction: default menu item: return an array of web uidellate method and custom nsmainuit conform to your custom actions Return

If you want to do this from a web app, you can add an event listener to the "context menu" event such as:

  document. AddEventListener ("contextmenu", function (event) {Event.preventDefault (); console.log ("My spiffy custom right click menu here!");}, False);  

You need to be aware though, that if you use the above code in your webpad, you can not modify the browser's basic rights click menu, just do it yourself Change with own custom build


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -