From 66b687a0e8e937fa653f66a067ec41513495c2d9 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Tue, 2 Nov 2010 18:35:46 +0000
Subject: [PATCH] 2010-11-02 gabriel * The initial commit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39803 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_jquery/plugin/hotkeys.xml            | 26 +++++++
 .../erp5_jquery/plugin/hotkeys/README.md.xml  | 76 +++++++++++++++++++
 .../plugin/hotkeys/jquery.hotkeys.min.js.xml  | 62 +++++++++++++++
 bt5/erp5_jquery_plugin_hotkey/bt/change_log   |  2 +
 .../bt/copyright_list                         |  1 +
 .../bt/dependency_list                        |  1 +
 bt5/erp5_jquery_plugin_hotkey/bt/description  |  1 +
 bt5/erp5_jquery_plugin_hotkey/bt/license      |  1 +
 .../bt/maintainer_list                        |  1 +
 bt5/erp5_jquery_plugin_hotkey/bt/revision     |  1 +
 .../bt/template_format_version                |  1 +
 .../bt/template_path_list                     |  2 +
 bt5/erp5_jquery_plugin_hotkey/bt/title        |  1 +
 bt5/erp5_jquery_plugin_hotkey/bt/version      |  1 +
 14 files changed, 177 insertions(+)
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys.xml
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/README.md.xml
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/jquery.hotkeys.min.js.xml
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/change_log
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/copyright_list
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/dependency_list
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/description
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/license
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/maintainer_list
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/revision
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/template_format_version
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/template_path_list
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/title
 create mode 100644 bt5/erp5_jquery_plugin_hotkey/bt/version

diff --git a/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys.xml b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys.xml
new file mode 100644
index 0000000000..da3ffeb615
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="Folder" module="OFS.Folder"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_objects</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>hotkeys</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/README.md.xml b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/README.md.xml
new file mode 100644
index 0000000000..086a36fa9b
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/README.md.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="DTMLMethod" module="OFS.DTMLMethod"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>__name__</string> </key>
+            <value> <string>README.md</string> </value>
+        </item>
+        <item>
+            <key> <string>_vars</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>globals</string> </key>
+            <value>
+              <dictionary/>
+            </value>
+        </item>
+        <item>
+            <key> <string>raw</string> </key>
+            <value> <string>#About\n
+**jQuery Hotkeys** is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.  \n
+\n
+This plugin is based off of the plugin by Tzury Bar Yochay: [jQuery.hotkeys](http://github.com/tzuryby/hotkeys)\n
+\n
+The syntax is as follows:\n
+\n
+    $(expression).bind(types, keys, handler);\n
+    $(expression).unbind(types, handler);\n
+    \n
+    $(document).bind(\'keydown\', \'ctrl+a\', fn);\n
+    \n
+    // e.g. replace \'$\' sign with \'EUR\'\n
+    $(\'input.foo\').bind(\'keyup\', \'$\', function(){\n
+      this.value = this.value.replace(\'$\', \'EUR\');\n
+    });\n
+\n
+## Types\n
+Supported types are `\'keydown\'`, `\'keyup\'` and `\'keypress\'`\n
+\n
+## Notes\n
+\n
+If you want to use more than one modifiers (e.g. alt+ctrl+z) you should define them by an alphabetical order e.g. alt+ctrl+shift\n
+\n
+Hotkeys aren\'t tracked if you\'re inside of an input element (unless you explicitly bind the hotkey directly to the input). This helps to avoid conflict with normal user typing.\n
+\n
+## jQuery Compatibility\n
+\n
+Works with jQuery 1.4.2 and newer.\n
+\n
+It known to be working with all the major browsers on all available platforms (Win/Mac/Linux)\n
+\n
+ * IE 6/7/8\n
+ * FF 1.5/2/3\n
+ * Opera-9\n
+ * Safari-3\n
+ * Chrome-0.2\n
+\n
+### Addendum\n
+\n
+Firefox is the most liberal one in the manner of letting you capture all short-cuts even those that are built-in in the browser such as `Ctrl-t` for new tab, or `Ctrl-a` for selecting all text. You can always bubble them up to the browser by returning `true` in your handler.\n
+\n
+Others, (IE) either let you handle built-in short-cuts, but will add their functionality after your code has executed. Or (Opera/Safari) will *not* pass those events to the DOM at all.\n
+\n
+*So, if you bind `Ctrl-Q` or `Alt-F4` and your Safari/Opera window is closed don\'t be surprised.*</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/jquery.hotkeys.min.js.xml b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/jquery.hotkeys.min.js.xml
new file mode 100644
index 0000000000..1bb68bf835
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/PathTemplateItem/portal_skins/erp5_jquery/plugin/hotkeys/jquery.hotkeys.min.js.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="File" module="OFS.Image"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_Cacheable__manager_id</string> </key>
+            <value> <string>http_cache</string> </value>
+        </item>
+        <item>
+            <key> <string>_EtagSupport__etag</string> </key>
+            <value> <string>ts80003845.65</string> </value>
+        </item>
+        <item>
+            <key> <string>__name__</string> </key>
+            <value> <string>jquery.hotkeys.min.js</string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>application/x-javascript</string> </value>
+        </item>
+        <item>
+            <key> <string>data</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+/*\n
+ * jQuery Hotkeys Plugin\n
+ * Copyright 2010, John Resig\n
+ * Dual licensed under the MIT or GPL Version 2 licenses.\n
+ *\n
+ * http://github.com/jeresig/jquery.hotkeys\n
+ *\n
+ * Based upon the plugin by Tzury Bar Yochay:\n
+ * http://github.com/tzuryby/hotkeys\n
+ *\n
+ * Original idea by:\n
+ * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/\n
+*/\n
+\n
+(function(b){b.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","\'":\'"\',",":"<",".":">","/":"?","\\\\":"|"}};function a(d){if(typeof d.data!=="string"){return}var c=d.handler,e=d.data.toLowerCase().split(" ");d.handler=function(n){if(this!==n.target&&(/textarea|select/i.test(n.target.nodeName)||n.target.type==="text")){return}var h=n.type!=="keypress"&&b.hotkeys.specialKeys[n.which],o=String.fromCharCode(n.which).toLowerCase(),k,m="",g={};if(n.altKey&&h!=="alt"){m+="alt+"}if(n.ctrlKey&&h!=="ctrl"){m+="ctrl+"}if(n.metaKey&&!n.ctrlKey&&h!=="meta"){m+="meta+"}if(n.shiftKey&&h!=="shift"){m+="shift+"}if(h){g[m+h]=true}else{g[m+o]=true;g[m+b.hotkeys.shiftNums[o]]=true;if(m==="shift+"){g[b.hotkeys.shiftNums[o]]=true}}for(var j=0,f=e.length;j<f;j++){if(g[e[j]]){return c.apply(this,arguments)}}}}b.each(["keydown","keyup","keypress"],function(){b.event.special[this]={add:a}})})(jQuery);
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>precondition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>size</string> </key>
+            <value> <int>1837</int> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/change_log b/bt5/erp5_jquery_plugin_hotkey/bt/change_log
new file mode 100644
index 0000000000..6c7854e368
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/change_log
@@ -0,0 +1,2 @@
+2010-11-02 gabriel
+* The initial commit
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/copyright_list b/bt5/erp5_jquery_plugin_hotkey/bt/copyright_list
new file mode 100644
index 0000000000..47af9544bf
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/copyright_list
@@ -0,0 +1 @@
+2010 (c) Nexedi SA
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/dependency_list b/bt5/erp5_jquery_plugin_hotkey/bt/dependency_list
new file mode 100644
index 0000000000..a3d3a39331
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/dependency_list
@@ -0,0 +1 @@
+erp5_jquery
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/description b/bt5/erp5_jquery_plugin_hotkey/bt/description
new file mode 100644
index 0000000000..0425f51725
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/description
@@ -0,0 +1 @@
+This  Business Template contains only static files of  JQuery HotKeys Plugin. 
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/license b/bt5/erp5_jquery_plugin_hotkey/bt/license
new file mode 100644
index 0000000000..3a3e12bcad
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/license
@@ -0,0 +1 @@
+GPL
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/maintainer_list b/bt5/erp5_jquery_plugin_hotkey/bt/maintainer_list
new file mode 100644
index 0000000000..38363f7303
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/maintainer_list
@@ -0,0 +1 @@
+gabriel
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/revision b/bt5/erp5_jquery_plugin_hotkey/bt/revision
new file mode 100644
index 0000000000..d8263ee986
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/revision
@@ -0,0 +1 @@
+2
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/template_format_version b/bt5/erp5_jquery_plugin_hotkey/bt/template_format_version
new file mode 100644
index 0000000000..56a6051ca2
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/template_format_version
@@ -0,0 +1 @@
+1
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/template_path_list b/bt5/erp5_jquery_plugin_hotkey/bt/template_path_list
new file mode 100644
index 0000000000..092c58f8c1
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/template_path_list
@@ -0,0 +1,2 @@
+portal_skins/erp5_jquery/plugin/hotkeys
+portal_skins/erp5_jquery/plugin/hotkeys/**
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/title b/bt5/erp5_jquery_plugin_hotkey/bt/title
new file mode 100644
index 0000000000..0366dda55a
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/title
@@ -0,0 +1 @@
+erp5_jquery_plugin_hotkey
\ No newline at end of file
diff --git a/bt5/erp5_jquery_plugin_hotkey/bt/version b/bt5/erp5_jquery_plugin_hotkey/bt/version
new file mode 100644
index 0000000000..48360de846
--- /dev/null
+++ b/bt5/erp5_jquery_plugin_hotkey/bt/version
@@ -0,0 +1 @@
+5.4.7
\ No newline at end of file
-- 
2.30.9