You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/04/16 18:14:52 UTC
svn commit: r934979 - in
/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script:
tobago-sheet.js tobago.js
Author: lofwyr
Date: Fri Apr 16 16:14:52 2010
New Revision: 934979
URL: http://svn.apache.org/viewvc?rev=934979&view=rev
Log:
TOBAGO-874: On Mac OS the command (apple) key should to the same like the CTRL key on Windows and Linux
Modified:
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js?rev=934979&r1=934978&r2=934979&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago-sheet.js Fri Apr 16 16:14:52 2010
@@ -465,7 +465,7 @@ Tobago.Sheet.prototype.doSelection = fun
var selector = this.getSelectorImage(row.get(0));
var rowIndex = row.index() + this.firstRowIndex;
- if ((!event.ctrlKey && !selector) || this.selectable == "single" ) {
+ if ((!event.ctrlKey && !event.metaKey && !selector) || this.selectable == "single" ) {
this.deselectAll();
}
Modified: myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=934979&r1=934978&r2=934979&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/trunk/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Fri Apr 16 16:14:52 2010
@@ -161,7 +161,7 @@ var Tobago = {
if (event.altKey) {
mod += "alt";
}
- if (event.ctrlKey) {
+ if (event.ctrlKey || event.metaKey) {
mod += "ctrl";
}
if (event.shiftKey) {
@@ -1765,11 +1765,11 @@ Tobago.In.prototype.checkMaxLength = fun
// If the input is something less than a space (e.g. tab, CR, etc.)
// return true.
- // If key was CTRL-v, which will be used to paste some new text,
+ // If key was CTRL-v (or APPLE-v), which will be used to paste some new text,
// pass it along.
if (event) {
if ((event.which < 32)
- || ((event.which == 118) && (event["ctrlKey"]))) {
+ || ((event.which == 118) && (event.ctrlKey || event.metaKey))) {
return true;
}
}