Skip to main content

Bug Tracker

Side navigation

#748 closed enhancement (fixed)

Opened January 02, 2007 05:44PM UTC

Closed May 20, 2007 06:09PM UTC

Last modified March 15, 2012 05:19PM UTC

Normalize mouse and keyboard buttons (keyCode, modifiers)

Reported by: yehuda Owned by:
Priority: minor Milestone: 1.1.3
Component: event Version: 1.1.2
Keywords: Cc:
Blocked by: Blocking:

For example, it would be cool if dimensions.js could provide a cross-browser offsetX, and other plugins could provide other fixes.

Attachments (0)
Change History (5)

Changed January 03, 2007 09:54AM UTC by joern comment:1

You could just intercept it:

(function($) {
  var org = $.event.fix;
  $.event.fix = function(event) {
    event = org(event);
    // add other stuff to event
    return event;

This should even work with multiple plugins, as long as the reference to the original is stored in a closure, instead of renaming it to something like "_fix".

Changed January 03, 2007 11:30PM UTC by joern comment:2

A fix-my-events-for-real-this-time plugin would be great. Resources:

Changed January 07, 2007 11:12PM UTC by john comment:3

priority: majorminor
type: bugenhancement

Changed January 09, 2007 08:01PM UTC by joern comment:4

summary: Provide a way to hook into event object and fixNormalize mouse and keyboard buttons (keyCode, modifiers)

Changed May 20, 2007 06:09PM UTC by john comment:5

milestone: → 1.1.3
need: → Review
resolution: → fixed
status: newclosed
version: → 1.1.2

Fixed in SVN.