On Mon, Mar 1, 2010 at 16:04, greasydigits <[email protected]> wrote:

>
> I haven't been able to find any mention of this undesired behavior in the
> mailing list so far.
>

"Undesirable" is in the eyes of the beholder. :-)

 The issue I am having is with the table clearing multiple selected rows to
> the last selected row whenever the spacebar is pressed. This is a problem
> in
> my project as I wish to recreate the intuitive spacebar "view"
> functionality
> that exists in OSX. Is this a bug and are there any workarounds? I can't
> find any reasonable explanation as to why the spacebar does this.
>

It is standard usage to move up and down in a list using the up/down or
pageup/pagedown keys, and then select the current item using the space bar.

The spacebar causes the selection manager's _handleSelectEvent() method to
be called. You can change this behavior by subclassing
qx.ui.table.selection.Manager and overriding the _handleSelectEvent()
method. Your replacement method would look something like this untested
snippet:

_handleSelectEvent : function(index. evt)
{
  // Do not use standard behavior of spacebar to select the current row
  if (evt.getKeyIdentifier() == "Space")
    return;

  // Otherwise do normal processing
  this.base(arguments, index. evt);
}

Hope that helps.

Derrell
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to