Hi,

I've been working with a bare-bones script to understand the problem better.

 members :
  {
    main : function()
    {
      this.base(arguments);

      var label =  new qx.ui.basic.Label ('Hello world');
      label.setFocusable  (true);
      label.setSelectable (true);

      this.getRoot ().add (label);

      var command_copy   = new qx.ui.core.Command ('Control+C');

      command_copy.addListener ('execute',
                                this.copy,
                                this);
    },

    copy : function (e)
    {
      if (true)
        {
    alert ('Would be nice if this could be a real Control+C');
    return;
        }


      alert ('Application Copy Behaviour');
    }
  }


I wouldn't be surprised if there's a better way of doing this. To
recap, what I want to do is have Control-C either call some
application behaviour, or the browser's default clipboard copy -- The
'true' above is meant to be the logic which decides which.

I'm getting different behaviour on different browser (with qooxdoo
r22102). On FF I get the alert each time I press Control-C, whereas on
IE and Safari I get the popup alternate times, and it seems to be
doing a clipboard copy the other times.

(Also, for some odd reason I can't copy the text on FF on a OS X,
although that works in my application)

Any thoughts greatly appreciated,

Nick Glencross


On Fri, May 7, 2010 at 7:14 AM, MartinWittemann
<[email protected]> wrote:
>
> Hi,
> Sounds like someone is calling "preventDefault" on that event. Have you
> checked your code that its not happening there? I did a quick search in our
> code and could not find anything. Maybe I'm completely wrong but that could
> be a point to start looking.
> Regards,
> Martin

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to