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 532401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:24:03+00:00 2026-05-13T09:24:03+00:00

I have a quite large Flex application with a large set of views and

  • 0

I have a quite large Flex application with a large set of views and I ceratain views I’d like to add shortcuts.

And i’m looking for something like:

<mx:Vbox>

<foo:Shortcut keys="ctrl+s" action="{bar();}"/> 

....

</mx:VBox>

Is there any framwork or component already done that does something like this? I guess it should be too difficult to build? When building this I only want the shortcuts to be active when the view is visible. How do I detect this? What base class is best to inherit from when working with non visual components?

  • 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-05-13T09:24:03+00:00Added an answer on May 13, 2026 at 9:24 am

    I don’t know of any framework component that does that already, but the examples above should get you started if you try to build your own.

    There’s no need to inherit from any component for a non-visual component like the one you’ve described here (your “foo” class needs no parents.) There’s nothing in the Flex framework you need to inherit from for this.

    However you architect it, your foo class is going to have to take in and parse keyboard codes to listen for and accept one or more methods to call. All you have to do is figure out when to add and remove the event listeners that will call the passed-in methods.

    To handle turning your keyboard events on and off based on visibility, just have your foo component bind to the “visible” property of it’s parent and add/remove event listeners accordingly.

    You might also consider having the listeners added when the component that foo is nested in is on the display list rather than just visible. To do this, simply added and remove your event listeners in one of the component lifecycle methods – probably commitProperties is the most appropriate.

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

Sidebar

Related Questions

I have a web application project that works with a quite large database (over
I have a calendar feed (.ics) available from my application, but it's quite large
I have an MVC application view that is generating quite a large HTML table
I've been doing quite large application recently with Java - Swing. Now I'd like
An application I have reads in quite large images (jpegs) but only needs to
I have developed a quite large application using MFC. Naturaly, I used GDI for
I have a Berkeley DB file that is quite large (~1GB) and I'd like
I am serving quite large files from a Pyramid Application I have written. My
I have a (problem?) where my application's main form code is becoming quite large.
I have quite a large VB6 project, with many forms, classes, modules and user

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.