Page 1 of 1

WebGadget and copy&paste...

Posted: Wed Sep 10, 2014 3:20 pm
by Kukulkan
Hello,

I'm trying to implement some HTML WYSIWYG editor like this (very basic but shows my problem):

Code: Select all

If OpenWindow(0, 0, 0, 800, 600, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) 
  WebGadget(0, 10, 10, 780, 580, "http://ckeditor.com/demo") 
  Repeat 
  Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf
Using this code, the CKEditor works in the WebGadget. But inside the editor I can not use Copy&Paste because it looks like CTRL+XCV is not forwarded to the control. Is there a way to make it work in a WebGadget? The same page in any other webbrowser works fine (http://ckeditor.com/demo).

I need to handle this for Windows and MacOS. Linux would be fine but not such a high priority.

Best,

Kukulkan

Re: WebGadget and copy&paste...

Posted: Wed Sep 10, 2014 7:16 pm
by Kiffi

Re: WebGadget and copy&paste...

Posted: Thu Sep 11, 2014 6:56 am
by Kukulkan
Thanks Kiffi,

I did not see this. Great. Any ideas how to do this for MacOS? And Linux?

Kind regards,

Kukulkan

Re: WebGadget and copy&paste...

Posted: Thu Sep 11, 2014 7:10 am
by Danilo
Kukulkan wrote:I did not see this. Great. Any ideas how to do this for MacOS? And Linux?
It already works on Mac OS X:
CMD+X = Cut
CMD+C = Copy
CMD+V = Paste
CTRL+Z = Undo
SHIFT+CTRL+Z = Redo
CMD+A = Select All
SHIFT+Cursor keys = Select text

Probably works with Linux, too. Both use WebKit.

Re: WebGadget and copy&paste...

Posted: Thu Sep 11, 2014 8:18 am
by Kukulkan
Thanks Danilo,

I will test this.

Best,

Kukulkan