Userscripts Comments Fix

By sizzlemctwizzle Last update Nov 14, 2011 — Installed 11,411 times.

AltGr problem

in
Subscribe to AltGr problem 6 posts, 4 voices



Mindeye Scriptwright
FirefoxWindows

I have a problem with your script and the AltGr key. If I want to write, for example, an Euro sign, with my keyboard configuration I have to press AltGr and E. But if the script is active no character appears, so I cannot write square brackets, curly brackets, etc... The same happens with other key combinations like Ctrl+Alt+E. Can you check your keydown, keypress, etc... event listeners to solve this?

 
sizzlemctwizzle Script's Author
FirefoxMacintosh

Okay this should be fixed now. Sorry about that.

 
Mindeye Scriptwright
FirefoxWindows

It's working ok now. Thanks ;-)

 
ameboide Scriptwright
FirefoxWindows

The script isn't telling the difference between Alt and Ctrl+Alt (AltGr), so Ctrl+Alt+any key used as a shortcut will stop working (in my keyboard, for example, Ctrl+Alt+Q = @)
This can be fixed replacing the 2 instances of "e.altKey" for "e.altKey && !e.ctrlKey" (lines 216 and 397)

Maybe the shortcuts could also be customizable?

 
WithOneWing User
FirefoxWindows

yeah, with german qwertz layout the AltGr + q is making an blockquote instead of an at-sign.

 
sizzlemctwizzle Script's Author
FirefoxWindows

This can be fixed replacing the 2 instances of "e.altKey" for "e.altKey && !e.ctrlKey" (lines 216 and 397)
Done.
Maybe the shortcuts could also be customizable?
Maybe someday, if I get the time.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel