All Answers

All Answers » Re: Can we show the browser Right-click menu? » Comments for "Re: Can we show the browser Right-click menu?"
  • Luca (ITG)
    Works for the ComboBox, so it’s not all broken…
  • 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)”);