SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  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 19:19.


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
  •