https://bugzilla.wikimedia.org/show_bug.cgi?id=16529

           Summary: fix IE bug in mwsuggest.js os_eventKeydown where keycode
                    is undefined
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: User interface
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


when other javascripts are included in a webpage that use event handlers, eg
prototype.js,
os_eventKeydown does not work (for example the arrow keys) because the keycode
is undefined.

Replacing the line in os_eventKeydown

        os_cur_keypressed = (window.Event) ? e.which : e.keyCode;

with

        if (undefined != e.keyCode)       
            os_cur_keypressed = e.keyCode;
        else                              
            os_cur_keypressed = e.which;  


You can see this modification in action at http://sesam.no/katalog/


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to