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

The Archive Base Latest Questions

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

We are writing an ExtJS application that relies in large measure on trapping a

  • 0

We are writing an ExtJS application that relies in large measure on trapping a users keystrokes. However I believe I have discovered a “timing issue” in that, when the keys are pressed too rapidly, unexpected behavior manifests, specifically in our case, duplicate entries get added to an array being buffered in memory.

I have an idea for a solution but am seeking input as to pitfalls to my idea, and other possible solutions. In essence my idea would be, instead of handling each keypress directly, adding the keypress to a stack, and then invoking a function/method that processes the stack. That function will always pop one item off the stack for starters. But when it is done doing so, it will check as to whether the stack has since been appended, and if so, process that entry (or entries).

  • 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:08:31+00:00Added an answer on May 13, 2026 at 9:08 am

    A stack would give you last-in-first-out (LIFO) where you would more than likely want to utilize a queue for first-in-first-out (FIFO) as you would want to be dequeuing key characters that first came on the stack. So in theory you would want to use enqueue/dequeue as opposed to push/pop to process keys in the correct order they came in.

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

Sidebar

Related Questions

I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ I have this one function where
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ in my code: I have this
Writing GWT application. I have CellTable and a code that i'v got from google-example
I'm writing an application in ExtJS that uses WebSQL to store data in a
Brainstorming needed . I have a problem with Javascript libraries (jQuery, ExtJS etc.) that
I Have ExtJS client-side programm that communicates with server using synchronous AJAX. Over 95%
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ This is my grid file Application.DashBoardGrid
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ here is my Application.ResellerIroGrid.js the pagination
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ Here is my Application.ResellerGrid.js Application.ResellerGrid =
Writing my first silverlight application. I need to deliver some bitmap that the customer

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.