1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Jquery.hotkeys by Zuriby</ title >
7+ < meta name ="description " content ="jquery.hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line... ">
8+ < meta name ="author " content ="zuriby ">
9+ < meta name ="robots " content ="index, follow ">
10+ <!-- Canonical URL -->
11+ < link rel ="canonical " href ="https://codehimblog.github.io/jquery-plugins/jquery-hotkeys-by-zuriby.html ">
12+ <!-- Favicon -->
13+ < link rel ="icon " href ="/favicon.ico " type ="image/png ">
14+ <!-- Bootstrap CSS -->
15+ < link href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css " rel ="stylesheet ">
16+ <!-- Bootstrap Icons -->
17+ < link href ="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css " rel ="stylesheet ">
18+ < link rel ="stylesheet " href ="/css/styles.css ">
19+ </ head >
20+ < body >
21+ <!-- Navbar -->
22+ < nav class ="navbar navbar-expand-lg navbar-dark bg-dark fixed-top ">
23+ < div class ="container ">
24+ < a class ="navbar-brand " href ="https://codehimblog.github.io ">
25+ < i class ="bi bi-box-seam me-2 "> </ i > CodehimBlog
26+ </ a >
27+ < button class ="navbar-toggler " type ="button " data-bs-toggle ="collapse " data-bs-target ="#navbarNav " aria-controls ="navbarNav " aria-expanded ="false " aria-label ="Toggle navigation ">
28+ < span class ="navbar-toggler-icon "> </ span >
29+ </ button >
30+ < div class ="collapse navbar-collapse " id ="navbarNav ">
31+ < ul class ="navbar-nav ms-auto ">
32+ < li class ="nav-item ">
33+ < a class ="nav-link " href ="https://codehimblog.github.io/ "> < i class ="bi bi-house-door me-1 "> </ i > Home</ a >
34+ </ li >
35+ < li class ="nav-item ">
36+ < a class ="nav-link " href ="https://codehimblog.github.io/projects/ "> < i class ="bi bi-box me-1 "> </ i > Projects</ a >
37+ </ li >
38+ < li class ="nav-item ">
39+ < a class ="nav-link " href ="https://codehimblog.github.io/about.html "> < i class ="bi bi-book me-1 "> </ i > About</ a >
40+ </ li >
41+ < li class ="nav-item ">
42+ < a class ="nav-link " href ="https://codehimblog.github.io/contact.html "> < i class ="bi bi-envelope me-1 "> </ i > Contact</ a >
43+ </ li >
44+ </ ul >
45+ </ div >
46+ </ div >
47+ </ nav >
48+
49+ <!-- Breadcrumbs -->
50+ < div class ="container mt-4 breadcrumbs ">
51+ < nav aria-label ="breadcrumb ">
52+ < ol class ="breadcrumb mb-0 ">
53+ < li class ="breadcrumb-item "> < a href ="https://codehimblog.github.io/ "> Home</ a > </ li >
54+ < li class ="breadcrumb-item "> < a href ="https://codehimblog.github.io/jquery-plugins/ "> jQuery Plugins</ a > </ li >
55+ < li class ="breadcrumb-item active " aria-current ="page "> Jquery.hotkeys</ li >
56+ </ ol >
57+ </ nav >
58+ </ div >
59+
60+ <!-- Schema Markup for Breadcrumbs -->
61+ < script type ="application/ld+json ">
62+ {
63+ "@context" : "https://schema.org" ,
64+ "@type" : "BreadcrumbList" ,
65+ "itemListElement" : [
66+ {
67+ "@type" : "ListItem" ,
68+ "position" : 1 ,
69+ "name" : "Home" ,
70+ "item" : "https://codehimblog.github.io/"
71+ } ,
72+ {
73+ "@type" : "ListItem" ,
74+ "position" : 2 ,
75+ "name" : "jQuery Plugins" ,
76+ "item" : "https://codehimblog.github.io/jquery-plugins/"
77+ } ,
78+ {
79+ "@type" : "ListItem" ,
80+ "position" : 3 ,
81+ "name" : "Jquery.hotkeys" ,
82+ "item" : "https://codehimblog.github.io/projects/{{packageSlug}}"
83+ }
84+ ]
85+ }
86+ </ script >
87+ <!-- Main Content -->
88+ < div class ="container mt-3 ">
89+ < div class ="row ">
90+ <!-- Main Details -->
91+ < main class ="col-md-8 site-main p-0 ">
92+ < article >
93+ <!-- Project Name & Description -->
94+ < h1 id ="packageName "> Jquery.hotkeys</ h1 >
95+ < p id ="packageDescription " class ="text-muted "> jquery.hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line of code to bind/unbind a hot key combination</ p >
96+
97+
98+
99+ <!-- Statistics -->
100+ < div class ="stat-row d-flex justify-content-around align-items-center text-center mb-2 ">
101+ < div class ="stat-box d-flex align-items-center flex-column-mobile ">
102+ < i class ="bi bi-star-fill text-warning mb-2 "> </ i >
103+ < div >
104+ < span id ="stargazersCount " class ="stat-value "> 789</ span >
105+ < p class ="stat-label mb-0 "> Stars</ p >
106+ </ div >
107+ </ div >
108+
109+ < div class ="stat-box d-flex align-items-center flex-column-mobile ">
110+ < i class ="bi bi-box-arrow-in-down mb-2 "> </ i >
111+ < div >
112+ < span id ="repoSize " class ="stat-value "> 0.54 MB</ span >
113+ < p class ="stat-label mb-0 "> Size</ p >
114+ </ div >
115+ </ div >
116+
117+ < div class ="stat-box d-flex align-items-center flex-column-mobile ">
118+ < i class ="bi bi-arrow-repeat text-secondary mb-2 "> </ i >
119+ < div >
120+ < span id ="forksCount " class ="stat-value "> 648</ span >
121+ < p class ="stat-label mb-0 "> Forks</ p >
122+ </ div >
123+ </ div >
124+
125+ < div class ="stat-box d-flex align-items-center flex-column-mobile ">
126+ < i class ="bi bi-exclamation-circle text-danger mb-2 "> </ i >
127+ < div >
128+ < span id ="openIssuesCount " class ="stat-value "> 41</ span >
129+ < p class ="stat-label mb-0 "> Open Issues</ p >
130+ </ div >
131+ </ div >
132+ </ div >
133+
134+
135+ < div class ="ad-unit ad-apt ">
136+ < script async src ="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419 "
137+ crossorigin ="anonymous "> </ script >
138+ <!-- CodehimBlog APT -->
139+ < ins class ="adsbygoogle "
140+ style ="display:block "
141+ data-ad-client ="ca-pub-7089100907045419 "
142+ data-ad-slot ="4990741913 "
143+ data-ad-format ="auto "
144+ data-full-width-responsive ="true "> </ ins >
145+ < script >
146+ ( adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
147+ </ script >
148+ </ div >
149+
150+ < div class ="row mb-4 ">
151+ <!-- Tabs (Left) -->
152+ < div class ="col-12 col-md-6 d-flex justify-content-start mb-3 mb-md-0 ">
153+ < ul class ="nav nav-tabs " id ="infoTabs " role ="tablist ">
154+ < li class ="nav-item " role ="presentation ">
155+ < button class ="nav-link active " id ="installation-tab " data-bs-toggle ="tab " data-bs-target ="#installation " type ="button " role ="tab " aria-controls ="installation " aria-selected ="true ">
156+ < i class ="bi bi-file-earmark-text "> </ i > Readme
157+ </ button >
158+ </ li >
159+ < li class ="nav-item " role ="presentation ">
160+ < button class ="nav-link " id ="changelog-tab " data-bs-toggle ="tab " data-bs-target ="#changelog " type ="button " role ="tab " aria-controls ="changelog " aria-selected ="false ">
161+ < i class ="bi bi-journal-text me-2 "> </ i > Changelog
162+ </ button >
163+ </ li >
164+ </ ul >
165+ </ div >
166+
167+ <!-- Action Buttons (Right) -->
168+ < div class ="col-12 col-md-6 d-flex align-items-center justify-content-end ">
169+ < a href ="https://github.com/zuriby/jquery.hotkeys/archive/refs/heads/master.zip " class ="btn btn-primary me-2 action-btn " id ="downloadBtn ">
170+ < i class ="bi bi-cloud-download me-2 "> </ i > Download ZIP
171+ </ a >
172+ < a href ="https://github.com/zuriby/jquery.hotkeys " target ="_blank " class ="btn btn-outline-secondary action-btn " id ="githubBtn ">
173+ < i class ="bi bi-github me-2 "> </ i > Fork on GitHub
174+ </ a >
175+ </ div >
176+ </ div >
177+ < div class ="tab-content mt-3 " id ="infoTabsContent ">
178+ < div class ="tab-pane fade show active " id ="installation " role ="tabpanel " aria-labelledby ="installation-tab ">
179+ < h1 > About</ h1 >
180+ < p > < strong > jQuery Hotkeys</ strong > is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.</ p >
181+ < p > This plugin is based off of the plugin by Tzury Bar Yochay: < a href ="http://github.com/tzuryby/hotkeys "> jQuery.hotkeys</ a > </ p >
182+ < p > The syntax is as follows:</ p >
183+ < pre > < code > $(expression).bind(types.keys, handler);
184+ $(expression).unbind(types.keys, handler);
185+
186+ $(document).bind('keydown.ctrl_a', fn);
187+
188+ // e.g. replace '$' sign with 'EUR'
189+ $('input.foo').bind('keyup.$', function(){
190+ this.value = this.value.replace('$', 'EUR');
191+ });</ code > </ pre >
192+ < h2 > Types</ h2 >
193+ < p > Supported types are < code > 'keydown'</ code > , < code > 'keyup'</ code > and < code > 'keypress'</ code > </ p >
194+ < h2 > Notes</ h2 >
195+ < p > If you want to use more than one modifiers (e.g. ctrl+alt+z) you should define them by an alphabetical order e.g. < code > alt_ctrl_z</ code > </ p >
196+ < p > 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.</ p >
197+ < p > All keys that have special meaning in RegExp strings (< code > \.+*?^$[](){}/'#</ code > ) can't< br />
198+ be removed by using the namespaced event until this jQuery bug get's fixed:< br />
199+ < a href ="http://bugs.jquery.com/ticket/11458 "> http://bugs.jquery.com/ticket/11458</ a > the colon (< code > .</ code > ) will never work (even if bug< br />
200+ is fixed) since it is used to separate multiple namespaces. To remove them you< br />
201+ will need to remove events to the whole event type:</ p >
202+ < pre > < code > // won't work
203+ $('#foo').unbind('keyup.$');
204+ $('#foo').unbind('keyup.+');
205+
206+ //will work
207+ $('#foo').unbind('keyup');
208+ $('#foo').unbind('keyup.a');
209+ $('#foo').unbind('keyup.ctrl_s');</ code > </ pre >
210+ < h2 > jQuery Compatibility</ h2 >
211+ < p > Works with jQuery 1.4.2 and newer.</ p >
212+ < p > It known to be working with all the major browsers on all available platforms (Win/Mac/Linux)</ p >
213+ < ul >
214+ < li > IE 6/7/8</ li >
215+ < li > FF 1.5/2/3</ li >
216+ < li > Opera-9</ li >
217+ < li > Safari-3</ li >
218+ < li > Chrome-0.2</ li >
219+ </ ul >
220+ < h3 > Addendum</ h3 >
221+ < p > 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 < code > Ctrl_t</ code > for new tab, or < code > Ctrl_a</ code > for selecting all text. You can always bubble them up to the browser by returning < code > true</ code > in your handler.</ p >
222+ < p > Others, (IE) either let you handle built-in short-cuts, but will add their functionality after your code has executed. Or (Opera/Safari) will < em > not</ em > pass those events to the DOM at all.</ p >
223+ < p > < em > So, if you bind < code > Ctrl_Q</ code > or < code > Alt_F4</ code > and your Safari/Opera window is closed don't be surprised.</ em > </ p >
224+ </ div >
225+
226+ < div class ="tab-pane fade " id ="changelog " role ="tabpanel " aria-labelledby ="changelog-tab ">
227+ < ul id ="changelogList ">
228+ No changelog available.
229+ </ ul >
230+ </ div >
231+
232+ </ div >
233+
234+ < div class ="tags mb-2 mt-2 ">
235+
236+ </ div >
237+
238+ </ article >
239+
240+
241+ </ main >
242+ <!-- Sidebar -->
243+ < aside class ="col-md-4 p-0 ">
244+ < div class ="sidebar ">
245+ <!-- Owner Section -->
246+ < div class ="sidebar-item mb-4 ">
247+ < div class ="ad-unit ">
248+ < script async src ="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419 "
249+ crossorigin ="anonymous "> </ script >
250+ <!-- CodehimBlog Sidebar -->
251+ < ins class ="adsbygoogle "
252+ style ="display:block "
253+ data-ad-client ="ca-pub-7089100907045419 "
254+ data-ad-slot ="8929986923 "
255+ data-ad-format ="auto "
256+ data-full-width-responsive ="true "> </ ins >
257+ < script >
258+ ( adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
259+ </ script >
260+ </ div >
261+ < div class ="d-flex align-items-center ">
262+ < img src ="https://avatars.githubusercontent.com/u/7790?v=4 " alt ="Owner Avatar " class ="rounded-circle me-2 owner-avatar ">
263+ < a href ="https://github.com/zuriby " target ="_blank " id ="ownerName " class ="sidebar-link "> zuriby</ a >
264+ </ div >
265+ </ div >
266+
267+ <!-- Metadata Section -->
268+ < div class ="sidebar-item mb-2 ">
269+ < div class ="metadata-item d-flex align-items-center ">
270+ < i class ="bi bi-calendar me-2 "> </ i >
271+ < strong > Created At:</ strong >
272+ < span id ="createdAt " class ="ms-1 "> September 10, 2008</ span >
273+ </ div >
274+ < div class ="metadata-item d-flex align-items-center mt-2 ">
275+ < i class ="bi bi-pencil-square me-2 "> </ i >
276+ < strong > Last Updated:</ strong >
277+ < span id ="updatedAt " class ="ms-1 "> November 13, 2024</ span >
278+ </ div >
279+ < div class ="metadata-item d-flex align-items-center mt-2 ">
280+ < i class ="bi bi-file-earmark-code me-2 "> </ i >
281+ < strong > Language:</ strong >
282+ < span id ="language " class ="ms-1 "> JavaScript</ span >
283+ </ div >
284+
285+ < div class ="metadata-item d-flex align-items-center mt-2 ">
286+ < i class ="bi bi-shield-check "> </ i >
287+ < strong > License:</ strong >
288+ < span id ="license " class ="ms-1 "> Unknown</ span >
289+ </ div >
290+ < a href ="http://code.google.com/p/js-hotkeys/ " target ="_blank " class ="btn btn-outline-dark btn-sm " id ="homepageBtn ">
291+ < i class ="bi bi-house-door me-2 "> </ i > Visit Homepage
292+ </ a >
293+
294+ </ div >
295+
296+ < div class ="sidebar-item mb-2 ">
297+ < li > No dependencies!</ li >
298+ </ div >
299+
300+ < div class ="sidebar-item ">
301+ < h5 class ="sidebar-title "> Contributors</ h5 >
302+ < ul class ="p-0 " id ="contributorsList ">
303+ < ul class ="list-group list-group-flush " id ="contributorsList "> < li class ="list-group-item d-flex align-items-center contributor-item "> < img src ="https://avatars.githubusercontent.com/u/7790?v=4 " alt ="zuriby " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/zuriby " target ="_blank " class ="text-decoration-none fw-bold "> zuriby</ a > < p class ="mb-0 text-muted small "> 6 contributions</ p > </ div > </ li > < li class ="list-group-item d-flex align-items-center contributor-item "> < img src ="https://avatars.githubusercontent.com/u/155633?v=4 " alt ="millermedeiros " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/millermedeiros " target ="_blank " class ="text-decoration-none fw-bold "> millermedeiros</ a > < p class ="mb-0 text-muted small "> 3 contributions</ p > </ div > </ li > < li class ="list-group-item d-flex align-items-center contributor-item "> < img src ="https://avatars.githubusercontent.com/u/426102?v=4 " alt ="chustar " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/chustar " target ="_blank " class ="text-decoration-none fw-bold "> chustar</ a > < p class ="mb-0 text-muted small "> 2 contributions</ p > </ div > </ li > < li class ="list-group-item d-flex align-items-center contributor-item "> < img src ="https://avatars.githubusercontent.com/u/1045177?v=4 " alt ="madpin " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/madpin " target ="_blank " class ="text-decoration-none fw-bold "> madpin</ a > < p class ="mb-0 text-muted small "> 2 contributions</ p > </ div > </ li > < li class ="list-group-item d-flex align-items-center contributor-item "> < img src ="https://avatars.githubusercontent.com/u/4559776?v=4 " alt ="BrunoWinck " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/BrunoWinck " target ="_blank " class ="text-decoration-none fw-bold "> BrunoWinck</ a > < p class ="mb-0 text-muted small "> 1 contributions</ p > </ div > </ li > < li class ="list-group-item d-flex align-items-center contributor-item d-none "> < img src ="https://avatars.githubusercontent.com/u/206?v=4 " alt ="sprsquish " class ="rounded-circle me-3 " style ="width: 40px; height: 40px; "> < div > < a href ="https://github.com/sprsquish " target ="_blank " class ="text-decoration-none fw-bold "> sprsquish</ a > < p class ="mb-0 text-muted small "> 1 contributions</ p > </ div > </ li > < li class ="list-group-item text-center "> < a href ="# " id ="toggleContributors " class ="d-block "> +1 more Contributors</ a > </ li > </ ul >
304+ </ ul >
305+
306+ </ div >
307+
308+ < div class ="ad-unit ">
309+ < script async src ="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7089100907045419 "
310+ crossorigin ="anonymous "> </ script >
311+ <!-- CodehimBlog Skyscrapper -->
312+ < ins class ="adsbygoogle "
313+ style ="display:block "
314+ data-ad-client ="ca-pub-7089100907045419 "
315+ data-ad-slot ="7469565592 "
316+ data-ad-format ="auto "
317+ data-full-width-responsive ="true "> </ ins >
318+ < script >
319+ ( adsbygoogle = window . adsbygoogle || [ ] ) . push ( { } ) ;
320+ </ script >
321+ </ div >
322+
323+ </ div >
324+ </ aside >
325+ </ div >
326+ </ div >
327+ <!-- Footer -->
328+ < footer class ="bg-dark text-white text-center py-3 page-footer ">
329+ < div class ="container ">
330+ < p class ="mb-2 "> © 2024 CodehimBlog - Powered by GitHub</ p >
331+ < nav >
332+ < ul class ="list-inline mb-0 ">
333+ < li class ="list-inline-item ">
334+ < a href ="/privacy-policy.html " class ="footer-link "> Privacy Policy</ a >
335+ </ li >
336+ < li class ="list-inline-item ">
337+ < span class ="text-white "> |</ span >
338+ </ li >
339+ < li class ="list-inline-item ">
340+ < a href ="/terms-and-conditions.html " class ="footer-link "> Terms and Conditions</ a >
341+ </ li >
342+ </ ul >
343+ </ nav >
344+ </ div >
345+ </ footer >
346+ <!-- Bootstrap Bundle JS -->
347+ < script src ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js "> </ script >
348+ < script src ="https://cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js "> </ script >
349+ < script src ="/js/script.js "> </ script >
350+ <!-- Google tag (gtag.js) -->
351+ < script async src ="https://www.googletagmanager.com/gtag/js?id=G-FG2ZX76XGT "> </ script >
352+ < script >
353+ window . dataLayer = window . dataLayer || [ ] ;
354+ function gtag ( ) { dataLayer . push ( arguments ) ; }
355+ gtag ( 'js' , new Date ( ) ) ;
356+
357+ gtag ( 'config' , 'G-FG2ZX76XGT' ) ;
358+ </ script >
359+ </ body >
360+ </ html >
0 commit comments