Can we show the browser Right-click menu?

0
0

hi,

I have clients that are used to copy/pasting using the browser right-click menu, especially in TextBoxes. It seems that the menu is universally hidden in Wisej.

Is this something that can optionally be displayed for some controls?  Maybe you can do this already and I just don’t  see the property.

Thanks

Mitch

  • You must to post comments
0
0

Hi Mitch,

It’s EnableNativeContextMenu: https://docs.wisej.com/api/wisej.web/general/control#enablenativecontextmenu

Best,

Luca

  • You must to post comments
0
0

I see the property and I set it to true for a text box, but it doesn’t seem to work

Is there any other property I need to set?

  • You must to post comments
0
0

Nope, it was probably broken when the textfield widget got wrapped in a container to support the tools. The same is most likely true for the other editors that have the tools.

  • mitch stephens
    Ok…so it’s not on my end?
  • Luca (ITG)
    Nope, it’s a regression. As a workaround you can use this: textBox1.Eval(“this.getChildControl(‘textfield’).setNativeContextMenu(true)”);
  • mitch stephens
    Luca, I tried this but I am getting an error message: https://www.screencast.com/t/a0XEM4g2w this is the code i used: this.txtURL.Eval(“this.getChildControl(\”txtURL\”).setNativeContextMenu(true)”); I also tried using single quotes. this.txtURL.Eval(“this.getChildControl(‘txtURL’).setNativeContextMenu(true)”); Any suggestions to fix this? The textbox name is txtURL Mitch
  • Luca (ITG)
    Use “textfield” – that’s the name of the inner editable widget. Wisej (qooxdoo) widgets are usually composed using child widgets, each with a specific name and role. The name is usually “icon”, “label”, “textfield”, “popup”, “list”. These are the id’s used to created the child widgets and refer to them in javascript using getChildWidget(name). When the widget is a child, the name (ID) becomes the child appearance key in the theme: the icon inside a button is “button/icon”, the label “button/label”, etc.
  • mitch stephens
    ok… that works.. thanks This is the line of code that works now (field is called txtURL) this.txtURL.Eval(“this.getChildControl(‘textfield’).setNativeContextMenu(true)”);
0
0

Hi Mitch,

we have logged that issue as WJ-7924 and will inform you when the fix is available.

Best regards
Frank

  • You must to post comments
0
0

Hi Mitch,

WJ-7924 is included in the latest build (1.3.22) that has just been uploaded.

Best regards
Frank

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.