mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[JS] Use beforeinput event to trigger a keystroke event in the sandbox
- it aims to fix issue #14307; - this event has been added recently in Firefox and we can now use it; - fix few bugs in aform.js or in annotation_layer.js; - add some integration tests to test keystroke events (see `AFSpecial_Keystroke`); - make dispatchEvent in the quickjs sandbox async.
This commit is contained in:
parent
922dac035c
commit
6ac296e48e
9 changed files with 254 additions and 45 deletions
|
@ -56,7 +56,7 @@ class GenericScripting {
|
|||
|
||||
async dispatchEventInSandbox(event) {
|
||||
const sandbox = await this._ready;
|
||||
sandbox.dispatchEvent(event);
|
||||
setTimeout(() => sandbox.dispatchEvent(event), 0);
|
||||
}
|
||||
|
||||
async destroySandbox() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue