Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2022-07-15T10:09:11+01:00

Commit: 
https://github.com/php/web-php/commit/352f78429224655fd5ff8cb2ba51d9b1b9f53859
Raw diff: 
https://github.com/php/web-php/commit/352f78429224655fd5ff8cb2ba51d9b1b9f53859.diff

Fix mousetrap.js (#655)

Changed paths:
  M  js/ext/mousetrap.min.js


Diff:

diff --git a/js/ext/mousetrap.min.js b/js/ext/mousetrap.min.js
index 185c42fd1..f0b9ca91d 100644
--- a/js/ext/mousetrap.min.js
+++ b/js/ext/mousetrap.min.js
@@ -9,3 +9,5 @@ d,e){var f=g(a,d,e),h;d={};var 
k=0,l=!1;for(h=0;h<f.length;++h)f[h].seq&&(k=Math
 
escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p;for(c=1;20>c;++c)n[111+c]="f"+c;for(c=0;9>=c;++c)n[c+96]=c.toString();d.prototype.bind=function(a,b,c){a=a
 instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return 
this};d.prototype.unbind=function(a,b){return 
this.bind.call(this,a,function(){},b)};d.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return
 this};d.prototype.reset=function(){this._callbacks={};
 this._directMap={};return 
this};d.prototype.stopCallback=function(a,b){if(-1<(" "+b.className+" 
").indexOf(" mousetrap ")||D(b,this.target))return!1;if("composedPath"in 
a&&"function"===typeof a.composedPath){var 
c=a.composedPath()[0];c!==a.target&&(b=c)}return"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};d.prototype.handleKey=function(){return
 this._handleKey.apply(this,arguments)};d.addKeycodes=function(a){for(var b in 
a)a.hasOwnProperty(b)&&(n[b]=a[b]);p=null};
 d.init=function(){var a=d(u),b;for(b in 
a)"_"!==b.charAt(0)&&(d[b]=function(b){return function(){return 
a[b].apply(a,arguments)}}(b))};d.init();q.Mousetrap=d;"undefined"!==typeof 
module&&module.exports&&(module.exports=d);"function"===typeof 
define&&define.amd&&define(function(){return d})}})("undefined"!==typeof 
window?window:null,"undefined"!==typeof window?document:null);
+/* Pause/unpause extension */
+(function(a){var 
b=a.prototype.stopCallback;a.prototype.stopCallback=function(a,c,d){return 
this.paused?!0:b.call(this,a,c,d)};a.prototype.pause=function(){this.paused=!0};a.prototype.unpause=function(){this.paused=!1};a.init()})(Mousetrap);

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to