V
V
vasilykharitonov2012-01-10 20:32:03
Canvas
vasilykharitonov, 2012-01-10 20:32:03

How to programmatically (JavaScript, css) disable quick search in Firefox9?

Good time of the day!
When implementing an application on html5 + canvas, I needed to intercept keyboard keypress events and store them inside the application. However, in Firefox, if quick search is enabled, clicks are intercepted by quick search.

How to programmatically (JavaScript, css) disable quick search in Firefox9 for a website page?
Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
vasilykharitonov, 2012-01-10
@vasilykharitonov

If in a function (I have it onKeypress) make a call to event.preventDefault();
then Firefox quick search is not called

S
stampoon, 2012-01-10
@stampoon

I don't think so. Application hotkeys, logically, should be prioritized over any open pages there.

H
homm, 2012-01-10
@homm

Well, how are you intercepting now?

V
vasilykharitonov, 2012-01-10
@vasilykharitonov

Like this:
$(document).keypress(onKeypress);
And if the fast user option is not enabled, then everything works fine.

N
Nordvind, 2012-01-10
@Nordvind

Don't you think this state of affairs is more than logical? Maybe you also want to intercept from the address bar? =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question