Skip to content

Conversation

@finetjul
Copy link
Member

@finetjul finetjul commented Apr 14, 2025

…instead of document

Observing on document produces many false positives. For example, a key press event was for an element but RWI was also processing it.

BREAKING CHANGE: This may break key press event current behavior. Use tabIndex=0 on RW containers to fix it.

fix #1856

Context

Read the description on #1856

Results

This time, it enforces the events are observed on the RW and not on the whole document.
This is important when there are multiple RW in a document.

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js: master
    • OS: Windows
    • Browser: Chrome

@finetjul finetjul force-pushed the 1856-further-fix-key-events branch from 7c40da4 to 5301ebb Compare April 14, 2025 22:12
@finetjul
Copy link
Member Author

image

@finetjul finetjul requested a review from floryst April 14, 2025 22:14
@finetjul finetjul force-pushed the 1856-further-fix-key-events branch from 5301ebb to 5c6fc0f Compare April 15, 2025 21:36
@finetjul finetjul requested a review from jourdain April 15, 2025 21:37
@jourdain
Copy link
Collaborator

I defer to Forrest on that one

@floryst
Copy link
Contributor

floryst commented Apr 16, 2025

Since this is a breaking change, let's merge this into the beta branch. I need to merge my "named parameters" branch into beta as well. That way, we have one major change as opposed to two.

@finetjul
Copy link
Member Author

Since this is a breaking change, let's merge this into the beta branch. I need to merge my "named parameters" branch into beta as well. That way, we have one major change as opposed to two.

I'm fine with merging it into the beta branch for now, but can the final merge into master happen soon-ish (e.g. in no more than 1 week)?

@floryst
Copy link
Contributor

floryst commented Apr 16, 2025

Since this is a breaking change, let's merge this into the beta branch. I need to merge my "named parameters" branch into beta as well. That way, we have one major change as opposed to two.

I'm fine with merging it into the beta branch for now, but can the final merge into master happen soon-ish (e.g. in no more than 1 week)?

Sure. I think we're good to go with the existing changes in beta (the volume mapper changes). I'll check to see if it merges cleanly.

@finetjul finetjul force-pushed the 1856-further-fix-key-events branch from 5c6fc0f to f622b7f Compare April 16, 2025 16:33
…instead of document

Observing on document produces many false positives. For example, a key press event was for an
<input> element but RWI was also processing it.

BREAKING CHANGE: This may break key press event current behavior.
tabIndex=0 is now added on RW containers.

fix Kitware#1856
@finetjul finetjul force-pushed the 1856-further-fix-key-events branch from f622b7f to 8cba154 Compare April 16, 2025 17:05
@finetjul finetjul changed the base branch from master to beta April 24, 2025 14:32
@floryst floryst merged commit acd36fb into Kitware:beta May 19, 2025
2 checks passed
@floryst floryst mentioned this pull request Jun 5, 2025
1 task
floryst added a commit that referenced this pull request Jun 13, 2025
Major changes:
- #3239
- #3224
- #3171
- #3159
- #3158
- #3157
@github-actions
Copy link

🎉 This PR is included in version 34.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Automated label label Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RWI keypress event listener

3 participants