WebGadget and copy&paste...

Everything else that doesn't fall into one of the other PB categories.
User avatar
Kukulkan
Addict
Addict
Posts: 1421
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

WebGadget and copy&paste...

Post 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
User avatar
Kiffi
Addict
Addict
Posts: 1525
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: WebGadget and copy&paste...

Post by Kiffi »

Hygge
User avatar
Kukulkan
Addict
Addict
Posts: 1421
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: WebGadget and copy&paste...

Post by Kukulkan »

Thanks Kiffi,

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

Kind regards,

Kukulkan
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: WebGadget and copy&paste...

Post 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.
User avatar
Kukulkan
Addict
Addict
Posts: 1421
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: WebGadget and copy&paste...

Post by Kukulkan »

Thanks Danilo,

I will test this.

Best,

Kukulkan
Post Reply