details: https://code.openbravo.com/erp/devel/pi/rev/2610ea098a2f
changeset: 17791:2610ea098a2f
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Aug 28 19:24:36 2012 +0200
summary: Fixed issue 21421: 'global' shortcuts now work in classic windows
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
| 15 ++++++++-
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 155025bf029e -r 2610ea098a2f
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
Tue Aug 28 18:40:44 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/classic/ob-classic-compatibility.js
Tue Aug 28 19:24:36 2012 +0200
@@ -240,11 +240,22 @@
getMDIKS: function () {
var key, auxKey, action, funcParam, keyMap, ClassicKeyJSON = [],
LKS = O.KeyboardManager.Shortcuts,
- i, length = LKS.list.length;
+ i, j, isCanvasShortcut, length = LKS.list.length;
for (i = 0; i < length; i++) {
auxKey = '';
- if (LKS.list[i].isGlobal) {
+ isCanvasShortcut = false;
+
+ if (LKS.list[i].execLevel) {
+ for (j = 0; j < LKS.list[i].execLevel.length; j++) {
+ if (LKS.list[i].execLevel[j] === 'Canvas') {
+ isCanvasShortcut = true;
+ break;
+ }
+ }
+ }
+
+ if (isCanvasShortcut) {
if (LKS.list[i].keyComb.ctrl === true) {
if (auxKey.length > 0) {
auxKey += '+';
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits