SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Keypress event in Safari with Flash in focus

    It appears that in Safari, when an embedded wmode=transparent SWF is in focus and the user types something, the keypress event does not fire in javascript. keydown and keyup do fire, but not keypress. And I need keypress because I need to get the charCode, not the keyCode.

    This is for the analogcode.com/p/JSTextReader/ (apparently I need more posts to have link-posting priviliges here ) - a workaround for a flash text input bug that also manifests in Safari.

    The keypress events do fire in IE and FF when flash is in focus, it's only Safari (3.1.2) that has this problem.

    Anyone has any idea on how the charCodes can be captured in js in Safari with flash in focus? I can provide code samples that exhibit that problem...
    Last edited by astgtciv; Sep 13, 2008 at 18:19.

  2. #2
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need to add that the keypress event fires in IE and FF only when wmode=transparent is used when embedding flash. Otherwise it does not fire. But that's when I need it to fire anyway!

    This problem seems to be an artifact of WebKit (of course), since Google Chrome behavior is the same as that of Safari. Test source for the problem is attached.

    I am thinking maybe I should contact the WebKit guys and ask them directly...
    Attached Files Attached Files
    Last edited by astgtciv; Sep 13, 2008 at 18:19.

  3. #3
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Posted two bugs to the WebKit Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=20836 and https://bugs.webkit.org/show_bug.cgi?id=20837 (one for the wmode=transparent text input bug, one for the keypress event not firing like in FF/IE).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •