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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:54:23+00:00 2026-05-27T12:54:23+00:00

I have a viewstack which implements a ‘wizard’ interface for doing new orders. On

  • 0

I have a viewstack which implements a ‘wizard’ interface for doing new orders. On the last page of the wizard, there is a button, with a fake accelerator on it, by which, if they press ‘o’, they can start the process over again.

Below is my handler:

        protected function _keyDownHandler(e:KeyboardEvent):void
        {
            if((e.charCode == 111)) {
                // stop the 'o' from getting out 
                trace("Cancelable : " , e.cancelable);
                this.removeEventListener(KeyboardEvent.KEY_DOWN, _keyDownHandler, true);
                e.stopImmediatePropagation();
                e.preventDefault();
                model.orderNew();
            }

        }

The problem is that when the user gets back to page 1 of the wizard, the ‘o’ the user just typed is now entered into a datagrid filtering textbox (filter by last names starting with ‘o’), which is not what is desired.

As you can see, I’ve made some attempts at forbidding this interaction, but it appears to be not enough, even though the model.orderNew() bit contains all the code to swap the viewstack pages around, re-setting the focus to the txtSearchFilter, etc…I’m quite stymied!

It appears that e.cancelable == false, which is probably why I’m getting this behavior..but the documentation says that KEY_DOWN IS cancelable, so…I’m still lost.

How can I keep the keypress from propagating to the form ?

Thanks

  • 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-27T12:54:24+00:00Added an answer on May 27, 2026 at 12:54 pm

    Check out this thread:

    http://forums.adobe.com/thread/434862

    It appears that both the KEY_DOWN and KEY_UP events are not cancellable in the flash player.

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

Sidebar

Related Questions

I have small page which has label, DropDownList and a submit button. <div> <asp:label
I have a component mxml in which i have a save button, on click
I have a component mxml in which I have a save button, on click
I have a dropdownlist (on Page) which has OnSelectedIndexChange event thats Loads different Control
I have a this asp.net page which upon first time load: 1: Make a
In my application I have a viewstack which I am changing via actionscript using
In Flex there is the ViewStack component. Does C# have a similar control? If
I have an aspx page that dynamically loads user controls: there is an UpdatePanel
I have an aspx page which has the following: A repeater with a linkbutton
I have a basic page which is used in an iFrame on an intranet

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.