Something went wrong. Try again.
we (web engine): Experimental web browser project to understand the limits of Claude
Something went wrong. Try again.
Review fix: extract shared event handlers to eliminate duplication master
The 7 event handler callbacks (isFlipped, acceptsFirstResponder, keyDown:, mouseDown:, mouseUp:, mouseMoved:, scrollWheel:) were duplicated verbatim between WeView and WeMetalView class registrations (~120 lines). Extract them to module-level extern "C" functions and a shared register_view_event_handlers() helper. Also rename MetalView._state to MetalView.state since the field is actively used (not just kept alive for drop). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Pierre Le Fevre Co-author Claude Opus 4.6 (1M context) Date (Mar 28, 2026, 7:37 AM UTC) Commit 6f676903 6f676903592fe7c839b0c6daa8f2ea5f1b5a3837 Parent 7b76729a 7b76729af4f61f457c9320e6e93d9e6c1b39d5fb