Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent cursor from hiding in Browser after key is pressed

I am aware that in most browsers (newest generation), the mouse cursor gets hidden when you type in any key like 'A' or Space. This is to let the user see what he types in. The cursor gets back visible as soon as you move the mouse for a pixel.

Now here comes the problem -- This happens everywhere in a browser, even when I've focused a non-input element like a div or the such. I do, however, not want the browser to hide my cursor after the user has pressed a key as I'm using keys as shortcuts.

So the question is -- is there any way or trick or anything to prevent this from happening and/or letting the cursor auto-appear again after key-up?

I've tried various "hacks" over the web like invisible divs etc. but everything without success.

EDIT: As questioned, I am experiencing this behavior on every Browser (Chrome latest, Firefox latest, Safari latest) on latest MAC-OS-X.

like image 269
anderswelt Avatar asked Oct 01 '13 09:10

anderswelt


People also ask

Why is Google Chrome hiding my cursor?

Final words. Mouse pointer disappearing issue comes due to the hardware acceleration property of Chrome. You can disable it but you might experience slower browsing capabilities. The best way might be to temporarily close the Chrome windows.

How do I make my cursor disappear when typing?

You will see a “Mouse Properties” window. At the top of this window, click the “Pointer Options” tab. The “Pointer Options” tab displays various mouse settings. Here, in the “Visibility” section, enable the “Hide Pointer While Typing” option.


1 Answers

This is not browser behavior but operating system behavior, and specifically Mac behavior. The cursor will not only hide if you type in the browser, but in any application on your Mac.

This means that the browser has no knowledge or control over the cursor, because it's hidden from a higher level. You can change the cursor with CSS or JavaScript for example, but it still won't show until you move it. You can't actually move the cursor using JavaScript, but even if you could I still doubt it'd help because the operating system didn't receive a signal of the cursor moving.

Also refer to this question on apple.stackexchange.com: How do I disable hiding of the mouse pointer while typing text?

like image 134
Stephan Muller Avatar answered Oct 12 '22 14:10

Stephan Muller