Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7829123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:37:40+00:00 2026-06-02T10:37:40+00:00

Possible Duplicate: How do I make flex only consume mouse scroll and keyboard events

  • 0

Possible Duplicate:
How do I make flex only consume mouse scroll and keyboard events when it's useful, and otherwise pass it on to the browser?

I’m making a web application with hotkey support, but the application utilizes flash quite heavily in the form of justin.tv stream embeds. I’m worried that once a user presses play or stop or focuses the flash field in any other way it will eat all subsequent key events before they reach Javascript. I’m worried because I know that the YouTube flash field does this; once it’s focused I can’t close the browser window with CTRL+W or CTRL+Tab into another tab.

Is that unique to the YouTube flash player? If not, is there anything I can do on the Javascript side to make sure focus remains on my application, allowing my hotkeys to function?

Any additional information on the topic of Javascript key events and browser plugins would be appreciated.

PS: I am aware I can deny access to the Flash field altogether by means of an invisible div overlay, but I would prefer any user to be allowed to play/stop and control the volume of the embedded stream.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T10:37:42+00:00Added an answer on June 2, 2026 at 10:37 am

    Unless Flash is activated through user interaction, it doesn’t receive key events. However, once it happens, it doesn’t retransmit key events to DOM. Unfortunately, even though you could trap all keys in JavaScript, you wouldn’t be able in general to notify Flash when you choose too. Flash won’t also receive focus through tabbing, but once it has focus, will not transfer it back to the page. There are only certain key combinations that you can’t listen to in Flash (because they are handled by the browser), such as Ctrl+O for example.

    But if you have control over the code executed in Flash (at least, you have to be able to load foreign SWF into your own SWF), then you could pass keystrokes to it and from it. I’m not sure about the tabstops. I think it would depend on the browser and whether it allows JavaScript to call focus().

    Here’s a demo, it is for the right mouse click only, but it would be similar for other key/mouse events.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to make return key on iphone make keyboard disappear? I have
Possible Duplicate: Make Browser Window Blink in Task Bar Hello I want to notify
Possible Duplicate: How to make a UITextField move up when keyboard is present I'm
Possible Duplicate: How do you make strings XMLsafe? I am making xml and part
Possible Duplicate: How to make data member accessible to class and subclass only In
Possible Duplicate: Make iPhone app paid version replace free version on install from app
Possible Duplicate: C# - Make a borderless form movable? Drag borderless windows form by
Possible Duplicate: how to make phone call by using objective c? I am trying
Possible Duplicate: How can I make an HTTP GET request from Perl? I am
Possible Duplicate: How can I make XSLT work in chrome? I have this XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.