Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jul 8, 2024

In #22157 I updated these fields to be 8-bit instead of 32-bit, but failed to notice that idx itself was a pre-shifted 32-bit index (used for indexing HEAP32 specifically). This change uses the original byte-width base pointer instead of the pre-shifted pointer.

Fixes: #22197

@sbc100 sbc100 requested a review from kripken July 8, 2024 20:24
@sbc100 sbc100 changed the title Fix html5 keyboard events, broken by recent EM_BOOL change Fix html5 events, broken by recent EM_BOOL change Jul 8, 2024
@sbc100 sbc100 enabled auto-merge (squash) July 8, 2024 21:44
@sbc100 sbc100 requested a review from dschuff July 8, 2024 21:44
@sbc100 sbc100 disabled auto-merge July 8, 2024 22:40
@sbc100 sbc100 enabled auto-merge (squash) July 8, 2024 22:40
@dschuff
Copy link
Member

dschuff commented Jul 8, 2024

Can you add a description about what was wrong and what the change does?

@sbc100
Copy link
Collaborator Author

sbc100 commented Jul 8, 2024

Can you add a description about what was wrong and what the change does?

Done.

@sbc100 sbc100 merged commit b7f5e59 into emscripten-core:main Jul 8, 2024
@sbc100 sbc100 deleted the fix_key_repeat branch July 8, 2024 22:57
@kripken
Copy link
Member

kripken commented Jul 8, 2024

Can we add a test for this?

@sbc100
Copy link
Collaborator Author

sbc100 commented Jul 8, 2024

Can we add a test for this?

That sounds great, but i'm not really sure how to. I'll take a quick look.

@sbc100
Copy link
Collaborator Author

sbc100 commented Jul 9, 2024

#22204 improves support for faking key events. I'll followup with a test for this code if I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EmscriptenKeyboardEvent.repeat always returns false

3 participants