Quantcast
Channel: Pale Moon forum
Viewing all articles
Browse latest Browse all 2134

Browser Development • [Feature request] Implement "beforeinput" event

$
0
0
Please consider implementing the beforeinput event (which is close to the keypress event).

Because of this missing implementation, currently I have to write the following in order to work on Pale Moon:

CODE:

const eventType = ('onbeforeinput' in inputElm) ? 'beforeinput' : 'keypress';inputElm.addEventListener(eventType, function (e) {    // ...});
References:See also this issue on W3C UI Events: Event order between "keypress" and "beforeinput".

Viewing all articles
Browse latest Browse all 2134

Trending Articles