I'm not sure if this is a bug, or I'm doing something wrong. I am selecting
all the rows within a table with a shortcut that differs on Mac than on a
PC. With the code below, the __selectAll function will fire correctly once
and only once if the command uses the Meta+A shortcut. If I comment out the
if statement and just make the command fire off of Control+A, it works an
unlimited number of times.
// SELECT ALL
if (qx.bom.client.Platform.MAC) this.__selectAllShortcut = new
qx.ui.core.Command("Meta+A");
else this.__selectAllShortcut = new qx.ui.core.Command("Control+A");
this.__selectAllShortcut.addListener("execute", this.__selectAll, this);
__selectAll : function(evt) {
this.__table.getSelectionModel().setSelectionInterval(0,
this.__table.getTableModel().getRowCount() - 1);
}
--
View this message in context:
http://n2.nabble.com/Command-with-Meta-modifier-only-firing-once-tp4675098p4675098.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download Intel® 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