Otherwise, use a ke圜ode for an ASCII character produced by the key when the US keyboard layout is active.If the alternative ASCII-capable keyboard layout produces an ASCII character with a Shift key modifier, use a ke圜ode for the shifted character.If the alternative ASCII-capable keyboard layout produces an ASCII character via just the unmodified key, use a ke圜ode for the character.If the active keyboard layout is not ASCII-capable and an alternative ASCII-capable keyboard layout is available.If you need to distinguish those keys but you don't want to support all keyboard layouts in the world by yourself, you should probably use de. For example, if the active keyboard layout is Russian, the ke圜ode value of both the "Period" key and "Slash" key are 190 ( KeyEvent.DOM_VK_PERIOD). Otherwise, the newly mapped ke圜ode values may be conflict with other keys. Warning: The purpose of these new additional rules is for making users whose keyboard layouts map unicode characters to punctuation keys in a US keyboard layout can use web applications which support Firefox only with ASCII-capable keyboard layouts or just with a US keyboard layout. Starting in Firefox 60 (Firefox 60.0 / Thunderbird 60.0 / SeaMonkey 2.57), Gecko sets ke圜ode values of punctuation keys as far as possible (when points 7.1 or 7.2 in the above list are reached) with the following rules: Otherwise, use 0 or compute with the following additional rules.If the pressed key on the alternative keyboard layout inputs an ASCII alphabetic or numeric character, use a keycode for it.Otherwise, i.e., the keyboard layout isn't ASCII capable, use the ASCII capable keyboard layout installed on the environment with the highest priority:.If the keyboard layout is ASCII-capable (i.e., can input ASCII alphabets), use 0 or compute with the following additional rules.Otherwise, i.e., pressed key inputs a unicode character:.If the pressed key inputs a different ASCII character with a Shift key modifier, use a keycode for it.If the pressed key inputs a different ASCII character with no modifier key, use a keycode for it.If the pressed key inputs an ASCII alphabetic or numeric character with a Shift key modifier, use a keycode for it.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |