[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [Bug 246097] New: window.event.keyCode may return wrong value
From:       <duke_the_killer () hotmail ! com>
Date:       2010-07-28 22:39:54
Message-ID: bug-246097-5021 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=246097

           Summary: window.event.keyCode may return wrong value
           Product: konqueror
           Version: 4.4.0
          Platform: MS Windows
        OS/Version: MS Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: kjs
        AssignedTo: konq-bugs@kde.org
        ReportedBy: duke_the_killer@hotmail.com


Version:           4.4.0 (using KDE 4.4.0) 
OS:                MS Windows

Found nothing in the changelogs between 4.4.0 and 4.4.5
Values returned in document.onkeypress and document.onkeydown are the same

document.onkeydown should be a "hardware key", the key pressed on my keyboard
document.onkeypress should be a "software key", the character that will appear

Reproducible: Always

Steps to Reproduce:
Test page: http://xirc.chez.com/onkeypress.html
Press:

Shift + 1
Shift + Alt + 1
Ctrl + Alt + 1
Ctrl + Shift + 1
Ctrl + Shift + Alt + 1

Actual Results:  
First 3 tests, onkeydown returns keyCode 33 33 177
Last 2 tests, onkeypress returns keyCode 49 49

Expected Results:  
First 3 tests should return 49 (value for "1" key)
Last 2 tests should return 33 (value for "!" key)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic