debian/0000775000000000000000000000000012320612133007161 5ustar debian/changelog0000664000000000000000000000136312320612053011037 0ustar libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2ubuntu1) trusty; urgency=medium * debian/patches/revert-to-0.8.patch: - Revert to jquery-hotkeys 0.8 rather than the current git snapshot because the snapshot breaks python-coverage HTML reports. LP: #1301574 -- Michael Terry Mon, 07 Apr 2014 17:08:29 -0400 libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-2) unstable; urgency=low * Fixed debian/copyright GPL-2 and not GPL-2+ in the license text. -- Thomas Goirand Sun, 07 Jul 2013 20:49:49 +0800 libjs-jquery-hotkeys (0~20130707+git2d51e3a9+dfsg-1) unstable; urgency=low * Initial release (Closes: #635475). -- Thomas Goirand Sun, 07 Jul 2013 14:09:13 +0800 debian/compat0000664000000000000000000000000212166263040010366 0ustar 9 debian/rules0000775000000000000000000000217712166263040010257 0ustar #!/usr/bin/make -f UPSTREAM_GIT = git://github.com/tzuryby/jquery.hotkeys.git DEBVERS ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p') VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//') DEBFLAVOR ?= $(shell dpkg-parsechangelog | grep -E ^Distribution: | cut -d" " -f2) DEBPKGNAME ?= $(shell dpkg-parsechangelog | grep -E ^Source: | cut -d" " -f2) GIT_TAG ?= $(shell echo '$(VERSION)' | sed -e 's/~/_/') MANIFEST_EXCLUDE_STANDARD ?= $(DEBPKGNAME) DEBIAN_BRANCH ?= $(shell cat debian/gbp.conf | grep debian-branch | cut -d'=' -f2 | awk '{print $1}') %: dh $@ fetch-upstream-remote: git remote add upstream $(UPSTREAM_GIT) || true git fetch upstream override_dh_builddeb: dh_builddeb -- -Zxz -z9 gen-orig-xz: if [ ! -f ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] ; then \ git archive --prefix=$(DEBPKGNAME)-$(GIT_TAG)/ $(GIT_TAG) | xz >../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ; \ fi [ ! -e ../build-area ] && mkdir ../build-area || true [ ! -e ../build-area/$(DEBPKGNAME)_$(VERSION).orig.tar.xz ] && cp ../$(DEBPKGNAME)_$(VERSION).orig.tar.xz ../build-area debian/patches/0000775000000000000000000000000012320611623010613 5ustar debian/patches/revert-to-0.8.patch0000664000000000000000000001006512320611623014070 0ustar Index: libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg/jquery.hotkeys.js =================================================================== --- libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg.orig/jquery.hotkeys.js 2013-07-07 02:07:42.000000000 -0400 +++ libjs-jquery-hotkeys-0~20130707+git2d51e3a9+dfsg/jquery.hotkeys.js 2014-04-07 17:07:28.655678149 -0400 @@ -11,50 +11,44 @@ */ (function(jQuery){ - + jQuery.hotkeys = { - version: "0.8+", + 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", + 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", + 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", 188: ",", 190: ".", 191: "/", 224: "meta" - }, - + }, + shiftNums: { - "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", - "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", + "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&", + "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<", ".": ">", "/": "?", "\\": "|" } }; function keyHandler( handleObj ) { - - var origHandler = handleObj.handler, - //use namespace as keys so it works with event delegation as well - //will also allow removing listeners of a specific key combination - //and support data objects - keys = (handleObj.namespace || "").toLowerCase().split(" "); - keys = jQuery.map(keys, function(key) { return key.split("."); }); - - //no need to modify handler if no keys specified - if (keys.length === 1 && (keys[0] === "" || keys[0] === "autocomplete")) { + // Only care when a possible input has been specified + if ( typeof handleObj.data !== "string" ) { return; } - + + var origHandler = handleObj.handler, + keys = handleObj.data.toLowerCase().split(" "); + handleObj.handler = function( event ) { // Don't fire in text-accepting inputs that we didn't directly bind to - // important to note that $.fn.prop is only available on jquery 1.6+ if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) || - event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { + event.target.type === "text" || $(event.target).prop('contenteditable') == 'true' )) { return; } - + // Keypress represents characters, not special keys var special = event.type !== "keypress" && jQuery.hotkeys.specialKeys[ event.which ], character = String.fromCharCode( event.which ).toLowerCase(), @@ -62,20 +56,20 @@ // check combinations (alt|ctrl|shift+anything) if ( event.altKey && special !== "alt" ) { - modif += "alt_"; + modif += "alt+"; } if ( event.ctrlKey && special !== "ctrl" ) { - modif += "ctrl_"; + modif += "ctrl+"; } - + // TODO: Need to make sure this works consistently across platforms if ( event.metaKey && !event.ctrlKey && special !== "meta" ) { - modif += "meta_"; + modif += "meta+"; } if ( event.shiftKey && special !== "shift" ) { - modif += "shift_"; + modif += "shift+"; } if ( special ) { @@ -86,7 +80,7 @@ possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true; // "$" can be triggered as "Shift+4" or "Shift+$" or just "$" - if ( modif === "shift_" ) { + if ( modif === "shift+" ) { possible[ jQuery.hotkeys.shiftNums[ character ] ] = true; } } debian/patches/series0000664000000000000000000000002412320611603012022 0ustar revert-to-0.8.patch debian/control0000664000000000000000000000204712320612112010564 0ustar Source: libjs-jquery-hotkeys Section: web Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: Thomas Goirand Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: https://github.com/tzuryby/jquery.hotkeys Vcs-Git: git://git.debian.org/pkg-javascript/libjs-jquery-hotkeys.git Vcs-Browser: http://git.debian.org/?p=pkg-javascript/libjs-jquery-hotkeys.git;a=summary Package: libjs-jquery-hotkeys Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, libjs-jquery Recommends: javascript-common Description: easily add and remove handlers for keyboard events anywhere in your code 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. . This plugin is based off of the plugin by Tzury Bar Yochay: jQuery.hotkeys (available at http://github.com/tzuryby/hotkeys). debian/docs0000664000000000000000000000022612166263040010043 0ustar README.md test-static-01.html test-static-02.html test-static-03.html test-static-04.html test-static-05.html test-static-06.html test-static-07.html debian/gbp.conf0000664000000000000000000000023712166263040010611 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = %(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/copyright0000664000000000000000000000471312166263040011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: jquery.hotkeys Source: git://github.com/tzuryby/jquery.hotkeys.git Files: debian/* Copyright: (c) 2013, Thomas Goirand License: MIT-or-GPL-2 Files: * Copyright: (c) 2008-2012, Tzury Bar Yochay (c) 2010, John Resig (c) 2012, millermedeiros (c) 2012, Chuma Nnaji (c) 2012, Matt Darby (c) 2012, Jeff Smick License: MIT-or-GPL-2 License: MIT-or-GPL-2 MIT License: . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . GPL-2-copyright-notice: . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License v2 (GPL) can be found in /usr/share/common-licenses/GPL-2. debian/source/0000775000000000000000000000000012166263040010470 5ustar debian/source/format0000664000000000000000000000001412166263040011676 0ustar 3.0 (quilt) debian/install0000664000000000000000000000006712166263040010564 0ustar jquery.hotkeys.js usr/share/javascript/jquery-hotkeys/