/usr/lib/python2.7/dist-packages/sagenb/data/jquery/plugins/extendedclick/jquery.event.extendedclick.js is in python-sagenb 0.13+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ;(function($){
/*
* Copyright (c) 2008, Minus Creative (http://minuscreative.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Created: 2008-10-01
*
* Updated from version 1.0 by Jason Grout <jason-sage@creativetrax.com>
* Available at https://github.com/jasongrout/jquery-extended-click
*
*/
// According to http://docs.jquery.com/Plugins/Authoring#Plugin_Methods,
// having 8 different namespaces for this plugin is discouraged, so we comment this out.
//$.fn.plainclick = function(fn) { return this[fn ? "bind" : "trigger"]("plainclick", fn); };
//$.fn.ctrlclick = function(fn) { return this[fn ? "bind" : "trigger"]("ctrlclick", fn); };
//$.fn.shiftclick = function(fn) { return this[fn ? "bind" : "trigger"]("shiftclick", fn); };
//$.fn.altclick = function(fn) { return this[fn ? "bind" : "trigger"]("altclick", fn); };
//$.fn.ctrlaltclick = function(fn) { return this[fn ? "bind" : "trigger"]("ctrlaltclick", fn); };
//$.fn.ctrlshiftclick = function(fn) { return this[fn ? "bind" : "trigger"]("ctrlshiftclick", fn); };
//$.fn.altshiftclick = function(fn) { return this[fn ? "bind" : "trigger"]("altshiftclick", fn); };
//$.fn.ctrlaltshiftclick = function(fn) { return this[fn ? "bind" : "trigger"]("ctrlaltshiftclick", fn); };
// all event clicks share the same config
$.event.special.plainclick =
$.event.special.ctrlclick =
$.event.special.altclick =
$.event.special.shiftclick =
$.event.special.ctrlaltclick =
$.event.special.ctrlshiftclick =
$.event.special.altshiftclick =
$.event.special.ctrlaltshiftclick = {
setup: function() {
$.event.add(this, "click", extendedClickHandler, {});
},
teardown: function() {
$.event.remove(this, "click", extendedClickHandler);
}
};
// Big shared event handler
function extendedClickHandler(event){
if(event.type==="click") {
if (event.ctrlKey)
{
if (event.shiftKey)
{
if (event.altKey || event.originalEvent.altKey)
{
event.type = "ctrlaltshiftclick"; // set to trigger
}
else
event.type = "ctrlshiftclick"; // set to trigger
}
else if (event.altKey || event.originalEvent.altKey)
{
event.type = "ctrlaltclick"; // set to trigger
}
else
event.type = "ctrlclick"; // set to trigger
}
else if (event.altKey || event.originalEvent.altKey)
{
if (event.shiftKey)
{
event.type = "altshiftclick"; // set to trigger
}
else
event.type = "altclick"; // set to trigger
}
else if (event.shiftKey)
{
event.type = "shiftclick"; // set to trigger
}
else
{
event.type = "plainclick"; // set to trigger
}
return $.event.handle.call(this, event);
}
}
})(jQuery);
|