How to enable drag and drop in Berkelium?

I have an application that uses Berkelium for an embedded web browser, and I am having trouble working with drag and drop. I saw examples of other WebKit-based applications that work just like a regular browser (Steam, Awesomium demo), so I feel it shouldn't be that hard to work, but I don’t know what might be wrong.

I skip all the mice, mouse movements and mouse events in the Berkelium browser (mouse and mouse functions) in the window), and I feel that all I need to do? I could not find any help on the Internet about this, so I hope someone here can know what is happening or where to look!

Thanks!

+4
source share
2 answers

I tried dragging the selection to Berkelium in my application. It works in fields, it does not work for page text.

+1
source

It looks like the second comment on this page may be for you to fix:

http://code.google.com/p/berkelium-sharp/issues/detail?id=1#c2

A shift click seems to work just fine to highlight the text, so if you send a shift down with the down button and a shift with the up button, it will select the text with it when the user drags.

I’m not sure if this will affect things like choosing a few options on the list, but if you don’t have the type of things on the site that you are trying to support, it’s the thing. I can't think of any other adverse effects right now, but I'm sure some probably exist.

This user says that it worked for him, so take a picture.

+1
source

Source: https://habr.com/ru/post/1345163/


All Articles