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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:17:55+00:00 2026-06-14T11:17:55+00:00

I want to remove stop GIF animation function from ESC button is it possible?

  • 0

I want to remove stop GIF animation function from ESC button is it possible?

Please see this : http://jsfiddle.net/f8emy/

Press Upload then hit ESC once then press upload again and you’ll notice the GIF animation stop moving.

Now i know you’re gonna ask me why did i disable the SimpleModal internal ESC function:

escClose: false

and added another ESC function:

$(function() {
    $(document).on('keydown', function(e) {
        if (e.keyCode === 27) {
            $.modal.close();
        }
    });
});

is it because this way it will also cancel the page from loading instead of just closing the SimpleModal so that it will cancel the upload also.

What i want exactly is when you click upload the simplemodal will appear with the GIF and then if you pressed ESC it will close the simplemodal and cancel the uplaod (stop page from loading) then if you press upload again it will be the same with the GIF animation still playing inside the simplemodal. 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-06-14T11:17:57+00:00Added an answer on June 14, 2026 at 11:17 am

    This is job for everyone’s favorite Super Hero:preventDeafult()-man!

    // Close SimpleModal & Cancel Page Loading (from uploading)
    $(function() {
        $(document).on('keydown', function(e) {
            if (e.keyCode === 27) {
                e.preventDefault(); //prevent browser from stopping animation
                $.modal.close();
            }
        });
    });
    

    Updated your jsFiddle.

    Firefox will stop gif animations when Esc is pressed; e.preventDefault() will prevent this action, and keep the party, erm…gif animation, going.

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

Sidebar

Related Questions

I want to remove stop words. Here is my code import nltk from nltk.corpus
I have this code: $('#banner .bg_wrap:first').stop().animate({ opacity: 0 }, 500, function(){ $(this).remove(); }); Now,
I want to remove stop words in java. So, I read stop words from
i want to remove an array of stop words from input string, and I
i want to remove the link from my header using CSS so that only
I want to remove the string code=hads1328fas& on my URL, so that BEFORE http://example.com/main/index.php?code=hads1328fas&store=food#home
I want to remove duplicate lines from a file, without sorting the file. Example
I want to remove a key from a dictionary if it is present. I
I want to remove an item from ListView , but I don't know how
In the execution of the scheduled job itself i want to stop it from

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.