[qo-modules-dev] [17] disable contextMenu for all the desktop by default |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qo-modules-dev Archives
]
Revision: 17
Author: ytorres
Date: 2008-11-12 22:27:33 +0100 (Wed, 12 Nov 2008)
Log Message:
-----------
disable contextMenu for all the desktop by default
Modified Paths:
--------------
yannick/shortcuts.js
Modified: yannick/shortcuts.js
===================================================================
--- yannick/shortcuts.js 2008-11-12 21:24:52 UTC (rev 16)
+++ yannick/shortcuts.js 2008-11-12 21:27:33 UTC (rev 17)
@@ -56,6 +56,9 @@
onRender: function() {
// Call parent (required)
Ext.ux.shortcutsView.superclass.onRender.apply(this, arguments);
+
+ // Disable contextMenu for all the window
+ Ext.fly(document.body).on('contextmenu', function(e,target) { e.preventDefault(); }, this);
},
onStoreLoad: function() {