Code Monkey home page Code Monkey logo

js-hotkeys's People

Watchers

 avatar

js-hotkeys's Issues

error when press any key in textarea, textfield

What steps will reproduce the problem?
1. add text area or text field in demo
2. try to type in text area/field
3. an error for each pressing

What is the expected output? What do you see instead?
See this error:
inspector(Object type=keydown target=textarea
currentTarget=html)jquery.hotkeys.js (line 83)
handle(Object type=keydown target=textarea
currentTarget=html)jquery-1.1.4.js (line 1562)
handle()jquery-1.1.4.js (line 1441)
[Break on this error] var cbMap = that.all[element].events[type].callbackMap;


What version of the product are you using? On what operating system?
Use the latest version of hotkeys which I can download from "Downloads" page.


Please provide any additional information below.
Firefox/2.0.0.8 Win 

Original issue reported on code.google.com by [email protected] on 29 Oct 2007 at 3:53

Ctrl + Num on the Keypad not working in IE, Safari and Chrome

When using the CTRL+NUM (any number), only the Firefox works well if you
use CTRL with a key from the numeric keypad. The other browsers just
doesn't trigger what is expected.

I've removed the IF statement in the line 60 of the jquery.hotkeys-0.7.8.js
and worked fine. I think that IF statement is disabling the key combination
in the other browsers.

Original issue reported on code.google.com by [email protected] on 17 Feb 2009 at 12:23

Numeric keypad input is recognized as letters

What steps will reproduce the problem?
1. Visit the demo page at http://jshotkeys.googlepages.com/test-static.html
2. Use the numeric keypad to enter numbers 0-9.  0 produces no result.  1-9
are recognized as lowercase letters a - i (in order), instead of the
expected numbers. 

Occurs with both IE/FireFox on Windows XP (only ones I've tested.)

Seems this could be fixed relatively easily.  Exhaustive discussion of
keycodes is given at http://unixpapa.com/js/key.html.

Original issue reported on code.google.com by [email protected] on 30 Apr 2008 at 7:21

Alt+D activates the browser address bar in Chrome

What steps will reproduce the problem?
1. Open the demo page in Chrome
2. Press Alt+D
3. The key is handled by the page. However, the address bar gets the focus.

What is the expected output? What do you see instead?
The address bar gets the focus. I expected the focus to stay on the page.

What version of the product are you using? On what operating system?
Chrome 1.0.154.48 on Windows XP 64



Original issue reported on code.google.com by r.spilker on 12 Feb 2009 at 10:31

js-hotkeys doesn't seem to work with jquery live events

What steps will reproduce the problem?
1. Bind a keypress, keydown, or keyup event to a jquery live event
2. Bind a js-hotkeys event
3. Only one of the events will fire or neither

What is the expected output? What do you see instead?
Even when live key events are bound, js-hotkeys should still work.

What version of the product are you using? On what operating system?
0.7.8

Please provide any additional information below.  Here's the code I'm
trying to get to work:
    // this was existing working code
    $('#contentInner #main .txtRequisition').live('keypress', function(e) {
        if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
            alert('enter pressed');
            return false;
        }
        return true;
    });

    // here's the 2 js-hotkeys events i added.  if i comment-out the
    // live handler, these work, but not otherwise.
    $(this).bind('keydown', 'f5', function(evt) {
        alert('f5');
        return false;
    });

    $(this).bind('keydown', 'Ctrl+r', function(evt) {
        alert('Ctrl+r');
        return false;
    });

Original issue reported on code.google.com by [email protected] on 20 Feb 2009 at 11:06

Number pad mappings slightly off...

Looks like a simple error...notice that the '3' is mapped twice, and '4' is
not mapped at all:

firefoxNumPad: { 96: '0', 97:'1', 98: '2', 99: '3', 100: '3', 
            101: '5', 102: '6', 103: '7', 104: '8', 105: '9' },



Original issue reported on code.google.com by [email protected] on 8 Sep 2008 at 4:39

DisableInInput Should also disable keys in SELECT tags

What steps will reproduce the problem?
1. Setup DisableInInput to true
2. Set cursor focus to an html select element
3. Press a configured keyboard shortcut

What is the expected output? What do you see instead?
I would hope that focus on select elements would disable keyboard shortcuts
if DisableInInput is true.  
Currently, the keyboard shortcut is executed.

What version of the product are you using? On what operating system?
Using commit 8275c7355b9dfda5f6cf1a7f4eba3ab358700bcb (current as of today)
from github repo.
Running Ubuntu 8.10 with Firefox 3.0.6

Please provide any additional information below.
The reasoning for this is many times keyboard users use the keyboard to
choose items in select lists (I for one) in order to speed up data entry.
Sometimes those keyboard entries to choose items in select elements can
conflict with the keyboard shortcuts configured. 

I have attached a patch the implements this change and it works for me.

I am submitting it for your approval and possible inclusion.

Best Regards,

Paul Eden

Original issue reported on code.google.com by [email protected] on 26 Feb 2009 at 8:15

Attachments:

Failed to prevent Firefox quick search bar from appearing when pressing '/'

What steps will reproduce the problem?
1. First problem is I can't find a way to bind '/'. I solve it by adding an
entry in specialKeys: {
         ....
         120:'f9', 121:'f10', 122:'f11', 123:'f12',
         191:'slash'            // by vole
}
Then I can bind it by "$(document).bind('keydown', 'slash', somehandler);"
2. In Firefox, when pressed '/', the quick search bar will appear. Even
'somehandler' return false, the bar will still appear.
3. Even I add some more code at hotkeys.handler, it seems still not work
for me. Before return result, I added:                  
                    if (!result) {
                        // by vole
                        var patchE = event.originalEvent;
                        if (patchE.stopPropagation) patchE.stopPropagation( );  // DOM
model
                        if (patchE.cancelBubble) patchE.cancelBubble = true;          
       // IE model
                        if (patchE.preventDefault) patchE.preventDefault( );    // DOM
                        if (patchE.returnValue) patchE.returnValue = false;           
      // IE
                    }
                    return result;

I tried out the above code outside jQuery & jquery.hotkeys, it works for me.

What is the expected output? What do you see instead?
I want to prevent the Firefox quick search bar from appearing.
But it appears anyway.

What version of the product are you using? On what operating system?
jquery.hotkeys-0.7.8.js
jquery-1.2.6.js
Windows XP SP2
Firefox 3.0.5

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 10 Jan 2009 at 9:38

Alt key not recognized

WinXP - Firefox 2.0.0.16

This attribute is undefined:
event.altKey

So I changed the line to this:
alt= event.originalEvent.altKey

I have no clue what this does to cross platform compatibility, but our app
runs in a closed network on Firefox 2....being selfish here!

By the way, great library, thank you!

Original issue reported on code.google.com by [email protected] on 28 Aug 2008 at 8:52

Ability to add an execution scope to the callback function

What steps will reproduce the problem?
1. try to use 'this.something' in function call


What is the expected output? What do you see instead?
I can use 'this' to reference the caller.

Example:
foo = {
    id: 5,
    bar: function() {
        alert(this.id);
    },
    init: function() {
        uic.shortcut.add("Shift+V", this.bar, {}, this, true);
    }
}

foo.init();


What version of the product are you using? On what operating system?
current


Please provide any additional information below:
http://www.openjs.com/scripts/events/keyboard_shortcuts/

See comment of Patrick ( 28 Aug, 2007 12:49 ). He proposed a solution for 
the script on that page. It should be possible to adapt this for js-
hotkeys.

Original issue reported on code.google.com by [email protected] on 30 Nov 2007 at 1:00

Getting errors when event.target was anchor

Needed to add the following line to avoid errors when event.target was an
anchor (or anything besides the HTML element)

if(!that.all || !that.all[element]) {return};

Just before this line:

var cbMap = that.all[element].events[type].callbackMap;

Original issue reported on code.google.com by [email protected] on 31 Jan 2008 at 8:05

f5 & t overlapping

What steps will reproduce the problem?
1. add t
2. press f5
3. t is executed
(works fine if both t and f5 are added)
works also in the demo, just deactivate adding f5

What version of the product are you using? On what operating system?
beta 03 / Firefox 2.00.7 Winxp

Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 11:05

Foreign keyboard mappings not picked up

A colleague asked why he couldn't get ? to get picked up by the code. I had
a look and it appears you're hard coding to US keyboard codes. We're in the
UK so letters are fine but symbols are very jumbled.

Here's some examples:

/ - 191
' - 192
# - 222

Original issue reported on code.google.com by david.carrington on 5 Oct 2007 at 10:19

adding acceskey support

im currently using this code to enable my accesskeys and allowing my forms
to be submitted by ctrl+return if u like it please include it (just give me
some credit...) hope its readable in this form :)

    $.hotkeys = $.extend($.hotkeys,{
        /**
         * @param {Object} on - selector or jQuery Object - 'div' <-> $('div')
         * @param {Object} options
         *  modifier: Ctrl / Alt / '' ? !Shift = Capital letter! -> Ctrl + A =
Ctrl + Shift + A
         *  target: in which area is this hotkey valid ? -> html <-> div#my_form
(not recommended since it makes users crazy)
         *  type: 'keyup' / 'keypress'
         *  propagate: ??? TODO
         *  disableInInput: will not be accessible while in a input field
         * @param {Object} callback - function to call
         */
        enableAccesskeys : function(on,options,callback){
            //sanitize options
            if(!options)options={};
            options = $.extend({modifier:'Alt'},options);
            if(!options.modifier &&
options.disableInInput==undefined)options.disableInInput = true;//normal
chars work in inputs...
            if(options.modifier)options.modifier+='+';

            //create hotkeys
            $(on).each(function(){
                var key;
                var that = this;
                var self=$(this);
                if(key = self.attr('accesskey')) {
                    var combo = options.modifier+key;
                    self.attr('title',self.attr('title')||'' +'(shortcut: '+combo+')');
                    $.hotkeys.add(combo,options,function(){
                        callback.apply(that);
                    });
                };
            });
        },

        /**
         * @param {Object} modifier Ctrl / Alt / ''
         * @param {Object} inside jQuery selected elements or html element 
         */
        enableStdAccesskeys : function(modifier,inside){
            //1 or 0 parameters
            if(typeof modifier == 'object' || modifier==undefined){
                inside=inside || modifier;
                modifier='Alt';
            }

            //accesskey for inputs

$.hotkeys.enableAccesskeys($(':input',inside),{modifier:modifier},this.inputCall
back);

            //accesskey for links
            //TODO blank/self etc

$.hotkeys.enableAccesskeys($('a',inside),{modifier:modifier},this.linkCallback);
        },
        /**
         * @param {Object} inside jQuery selected elements or html element
         */
        enableFormSubmit: function(inside){
            $('form',inside).each(function(){
                var that = this;
                //so we can have multiple form callbacks
                this.toString=function(){
                    return 'Form: '+$(this).attr('action');
                }
                $.hotkeys.add('Ctrl+Return',{target:this},function(){
                    $(that).submit();
                });
            });
        },

        inputCallback:function(){
            $(this).focus();
        },

        linkCallback:function(){
            $(this).click();
            window.location=$(this).attr('href');
        }
    });

(grosser.michael.....gmail.com - pragmatiker.net)

Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 11:18

Spanish keyboard problem

What steps will reproduce the problem?
1. bind event to Alt+Ctrl+2
2. type an email address into a form field (@ key on spanish keyboard is gained 
by pressing 
AltGR + 2)


What is the expected output? What do you see instead?
no event should be fired but the event bound to Alt Ctrl 2 is getting called

What version of the product are you using? On what operating system?
0.7.8 - problem occurs across browsers - tested in IE7, FF2, FF3, Safari




Original issue reported on code.google.com by [email protected] on 6 Mar 2009 at 9:18

F8 hotkey triggers Yahoo widgets

What steps will reproduce the problem?
1. open firefox web browser
2. open test page http://jshotkeys.googlepages.com/test-static-01.html
3. hit f8

What is the expected output? What do you see instead?
Expected output: f8 hotkey triggered and displayed result on page. 
The f8 triggers yahoo widgets and displays it's window.


What version of the product are you using? On what operating system?
http://jshotkeys.googlepages.com/test-static-01.html
Testing Platform:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4)
Gecko/2008102920 Firefox/3.0.4
Yahoo widgets 4.0.5(build 184) installed


Please provide any additional information below.
Not sure if this can be fixed within browser and is a valid bug report
regarding js-hotkeys.

Original issue reported on code.google.com by [email protected] on 25 Nov 2008 at 11:23

Attachments:

ajax loading/same target name -> cannot apply hotkey

imo the storing of elements needs to be enhanced, so that objects as
targets and objects+ajax loading can work

//small fix
//so we can have multiple form callbacks - on the same form(ajax loaded...)
this.toString=function(){
                    if(!this.random_name)this.random_name=Math.round(Math.random()*1000);
return 'Form: '+this.random_name+$(this).attr('action');
                }

Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 1:39

that.all[...].events is null

I have a link with an image:
<li><a href="/t99bWar/busquedaFirmanteJSP/#.do" id="botonLimpiar"><img
src="/t99bfrm/images/limpiar.gif" alt="Limpiar"></a></li>

I have a click event:
$('#botonLimpiar').click(function(){$("form")[0].reset();return false;});

I have "return" key:
$.hotkeys.add('return', function(){return false;});

If i press link and then press "return" key, i get an error in Internet
Explorer 6.0.2800.1106:
that.all[...].events is null

Any idea?

PD: Sorry about my english :(
PD2: Very nice work!!

Original issue reported on code.google.com by [email protected] on 21 Sep 2007 at 11:28

Allow more thn one function per binding

In jQuery one can do:
$(document).bind('click', foo);
$(document).bind('click', bar);

and both functions will be called when the event occur. 

This plug in should support this as well.

Original issue reported on code.google.com by [email protected] on 8 Sep 2008 at 5:43

comination

has the same combination to add several objects


Original issue reported on code.google.com by [email protected] on 21 Jul 2008 at 5:58

F5 does not return false in IE

Hitting F5 in IE does not return false.

Does not work in IE:

$(document).bind("keydown","F5",function(){
    /* do something */
    return false;
});

Does work in IE:

$(document).bind("keydown","F5",function(){
    /* do something */
    if (navigator.appVersion.indexOf('MSIE') != -1) {
        event.keyCode = 0; event.returnValue = false; }
    return false;
});

Why is this not default or how can I do this better?

Original issue reported on code.google.com by [email protected] on 1 Jan 2009 at 5:20

unable to unbind: Alt+s, Ctrl+s, Alt+w, Ctrl+w

example code:

var shortcut = ['Alt+s','Ctrl+s','Alt+w','Ctrl+w']; 
for (var i in shortcut) {
  if (shortcut.hasOwnProperty(i)) {
    $(document).unbind('keydown',shortcut[i], this.send);
  }
}

jquery.hotkeys-0.7.8.js

binding of those shortcuts works.
unbinding of return (as an example) works just fine.
I didn't check if other Alt+ Ctrl+ combinations have same issues.

Tested under Firefox 3, Google Chrome, IE 7, Midori,
no errors returned by debuggers.

Original issue reported on code.google.com by [email protected] on 19 Feb 2009 at 10:10

pass parameters to callback function

What steps will reproduce the problem?
1. create in cycle 10 text input boxes
2. create function which will copy selected text to textbox
3. bind Ctrl+0 to Ctrl+9 to assign this function to the textboxes
4. the problem is that you need to create 10 functions to solve this with
js-hotkeys


I suggest to add add parameter 'params' and send it to callback function
like you do with propagate:
this.all[opt.target].events[opt.type].callbackMap[combi] =  {cb: callback,
propagate:opt.propagate, params:opt.params};

Of course 'params:null' needs to be added to the default options.

This works for me.

Martin

Original issue reported on code.google.com by [email protected] on 16 Dec 2007 at 10:05

Ctrl+L and Ctrl+P open dialog in IE6/IE7

What steps will reproduce the problem?
1. Go to the demo page using IE
2. Press Ctrl+P
3. The print dialog appears

What is the expected output? What do you see instead?
I expected the dialog NOT to appear

What version of the product are you using? On what operating system?
IE7 on Windows XP 64

Please provide any additional information below.
There is a relative easy way to fix this. The following javascript snippet 
could be inserted in the keydown listener:

// Only IE
if (window.event) {
  try { window.event.keyCode = 0; } catch(e) {/* Ignore */}
}


Original issue reported on code.google.com by r.spilker on 12 Feb 2009 at 9:48

disableInInput is not respected

FF2 on Win XP

The latest code has moved disableInInput away from being a global
setting...nice!  However, the code that checks to see if the event was
fired from within an input field (text box in my case) incorrectly
identifies the event as being fired from the entire document.  So the
setting is never applied. 

Original issue reported on code.google.com by [email protected] on 5 Sep 2008 at 6:50

Performance @ inspector

maybe theres a better method than defining var inspector = function(event)
{ in every add, could propably save a bit of performance

btw:
structuring the code in
$.extend... style would have the benefit that it can be extended even
before hotkeys.js is loaded

(grosser.michael.....gmail.com - pragmatiker.net)

Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 11:22

Number pad does not map correctly

1. Go to the demo page
2. Use the number pad (0-9) and watch what keys light up.  For me, the
numbers translated to the first corresponding letters in the alphabet.

Easy to produce on demo site, I also reproduced in the latest download.  I
am using Firefox v2.0.0.16



Original issue reported on code.google.com by [email protected] on 27 Aug 2008 at 10:14

ID binding does not work in IE7

What steps will reproduce the problem?
1. $("#anyidhere").bind("keydown","F2",someFunction);
2. Press F2, function is not called

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
0.7.8, Windows XP, IE 7

Please provide any additional information below.
Others have reported this issue as well elsewhere

Original issue reported on code.google.com by [email protected] on 17 Dec 2008 at 2:21

Documentation typo

In the documentation,

$(document).bind('keydown', {combi:'a', disableinInput: true}, fn);

should read

$(document).bind('keydown', {combi:'a', disableInInput: true}, fn);

disableinInput <> disableInInput

W.

Original issue reported on code.google.com by [email protected] on 23 Mar 2009 at 6:09

Plugin adds a bunch of unneccassary global variables

After executing the plugin, a bunch of new global variables are added to
the global (window) object, including version, special_keys, shift_nums and
more. To test this, run Firebug and enter one of those variables (or use
window.special_keys to be more explicit).

These global variables have been added due to the use of the "this" keyword
inside the plugin:

(function (jQuery){
    this.version = '(beta)(0.0.3)';
    ...
)(jQuery);

When a JavaScript function is called without being treated as a method the
"this" keyword refers to the global "window" object, and any properties
added to it will become global variables. This is bad!

The solution should be pretty straight forward. Since "this" appears to
just be used to collect some variables together in to an object, a
different variable could be substituted instead. I suggest something like this:

(function (jQuery){
    var hotkeys = {}
    hotkeys.version = '(beta)(0.0.3)';
    ...
    ...
    jQuery.hotkeys = hotkeys;
)(jQuery);

Original issue reported on code.google.com by simon%[email protected] on 4 May 2008 at 8:18

Re: Adding support for Mac command (meta) key


Issue 26 http://code.google.com/p/js-hotkeys/issues/detail?id=26 claims to 
be fixed however as of version 0.7.8 there is still no support for the 
command key. I have included a very simple patch below which solves this 
problem by looking at the metaKey property of the key event object. I hope 
you will include this in a future version.

Diff against http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.8.js
---------------------------------------------------------------------------
184a185
>                 meta = event.metaKey,            
201c202
<                 if(!shift && !ctrl && !alt) { // No Modifiers

---
>                 if(!shift && !ctrl && !alt && !meta) { // No Modifiers
205c206
<                     // check combinations (alt|ctrl|shift+anything)

---
>                     // check combinations (alt|ctrl|shift|meta+anything)
209a211
>                     if(meta) modif += 'meta+';

Original issue reported on code.google.com by [email protected] on 16 Oct 2008 at 11:21

Attachments:

unbind doesnt work (fix included)

What steps will reproduce the problem?

1. trying to unbind any combi

What is the expected output? What do you see instead?

expected: triggersMap[ObjName][evtName][combi] to be empty or reduced
instead:  triggersMap[ObjName][evtName][combi] accumulates 

What version of the product are you using? On what operating system?

0.7.8 packed and unpacked Mozilla Firefox 3.0.4/Linux

Please provide any additional information below.

fix is:

116:
+                     var combi = data.combi.toLowerCase(),

Nice lib, but this cost me quite some nerves. Hope i could help.

Original issue reported on code.google.com by [email protected] on 9 Dec 2008 at 11:19

Plugin doesn't work for multiple targets

What steps will reproduce the problem?
1. Open hotkeys.html from attached archive in IE/FF (tested on IE7/FF2)
2. Click the first button, then press Ctrl + C. Alert 'II' appears
3. Click the second button, then press Ctrl + C. Nothing happens

What is the expected output? What do you see instead?
1. Alert 'I' should appear for the first button
2. Alert 'II' should appear for the second button

Looks like it's not a good idea to use hash as a storage for HTML elements.
I've written little unique ID generator and the problem has gone (standard
jQuery.data IMHO doesn't suit well for ID generation because of:

1. It pollutes elements with expando even for the case when you just need
to check whether unique id exists

2. It is being removed on unload event, so that custom components that I'm
writing cannot use destroy() method as a single-point for AJAX and page unload
)

Original issue reported on code.google.com by [email protected] on 12 Jun 2008 at 11:52

Attachments:

Multiple hotkeys from an Array

Hi there!

Ok, maybe this not is an issue for the Hotkeys jQuery plugin, but, I am a
bit confused with this and think that someone help me. The question is
this. If you register some hotkeys as usual, that is:

$(d).bind(e, a('a'), function(){r('./post-new.php')});
$(d).bind(e, a('c'), function(){r('./comment-manage.php')});
$(d).bind(e, a('d'), function(){r('./')});

And so on... you are ok, and all work fine that is expected. But, if you
try somthing like this:

var hotkeys = {
  'a' : './post-new.php',
  'c' : './comment-manage.php',
  'd' : './'
}

for(hotkey in hotkeys){
  $(d).bind(e, a(hotkey), function(){r(hotkeys[hotkey])});
}

You obtain that the only hotkey that run is the last in the "hotkeys"
Array. Better said, that hotkeys run (a, c, d) but redirect to the same
URL: the last in the Array, corresponde to "d" hotkey. What happend? Anyone
help me please? Thanks in advance and have anice day! ;-)

Original issue reported on code.google.com by [email protected] on 4 Nov 2008 at 4:36

API Change Question

Sorry, not sure where else to put this.  According to the new API:
"The plugin extends the following jQuery methods and functions:

    * $.fn.bind
    * $.fn.unbind
    * $.find 

The plugin takes over the control for bind() and unbind() methods. "

So...my question is:  What does this do to people that are currently using
jQuery and the bind, unbind and find methods?  Does it make those methods
unusable for them in their intended jQuery context?

Not a problem for me, our project is using Prototype.  More of a general
question.


Original issue reported on code.google.com by [email protected] on 8 Sep 2008 at 5:05

target doesn't work

Tested in Firefox 3.0.3b and Opera 9.2

I don't understand the jQuery event system yet so I haven't quite debug it
but thought I'd start by getting it into the system...


Original issue reported on code.google.com by [email protected] on 27 Feb 2008 at 5:13

Attachments:

that.all[...].events is null

Hi,
when i traverse controls with tab key i have this error: that.all
[...].events is null.
This is the page with issue.

<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript">
    function shortcuts() {
        $.hotkeys.add('f6',function(){ alert('f6'); });
        $.hotkeys.add('f7',function(){ alert('f7'); });
        $.hotkeys.add('f8',function(){ alert('f8'); });
        $.hotkeys.add('f9',function(){ alert('f9'); });
        $.hotkeys.add('esc',function(){ alert('esc'); });
    }

    $(document).ready(shortcuts);
</script>
<head>
<body>
<a href="javascript://">Link 1</a>
<br/>
<a href="javascript://">Link 2</a>
<br/>
<input type="text" />
<br/>
<input type="text" />
</body>
</html>

Original issue reported on code.google.com by [email protected] on 3 Jan 2008 at 8:26

Attachments:

Performance @ inspector

maybe theres a better method than defining var inspector = function(event)
{ in every add, could propably save a bit of performance

btw:
structuring the code in
$.extend... style would have the benefit that it can be extended even
before hotkeys.js is loaded

(grosser.michael.....gmail.com - pragmatiker.net)

Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 11:21

key events not bubbling up to the application level in safari

What steps will reproduce the problem?
1. create a simple jQuery.Hotkeys enabled page with a single handler for 'n'
2. hit the 'n' key to fire the action
3. hit command-n intending to create a new browser window

What is the expected output? What do you see instead? even with 
{propagate:true}, the 
command-n key event is gobbled by the page and never passed back up to the 
browser. this 
makes pages which use jQuery.Hotkeys rather frustrating for users as their key 
commands 
appear to stop working.

What version of the product are you using? On what operating system?
safari 3.1.1 / Mac OS X 10.5.3

Please provide any additional information below.
this must be possible since the key navigation on http://ffffound.com/ uses say 
the h key yet 
command-h is still fed to the browser.

Original issue reported on code.google.com by [email protected] on 21 Apr 2008 at 7:42

The + and - keys trigger the m and n keys, respectively.

What steps will reproduce the problem?
1. Visible on live demo

What is the expected output? What do you see instead?
I expect a + or - field to turn blue (although they aren't there anyway),
but get m and n instead.

What version of the product are you using? On what operating system?
The version used in the live demo.
OS: Windows XP
Browsers: IE7 and FF3

Please provide any additional information below.
-

Original issue reported on code.google.com by [email protected] on 11 Dec 2008 at 11:00

not working in jquery 1.2.1

What steps will reproduce the problem?
1. Work with jQuery 1.2.1

What is the expected output? What do you see instead?
Output> element.attachEvent is not a function, in jquery.js line 1636

What version of the product are you using? On what operating system?
version 0.0.3 on windows xp


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Sep 2007 at 4:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.