Ever accidentally hit the Insert key in the Delphi IDE and started overwriting your code? In this video, I use Claude AI to live-code a Delphi IDE plugin using the Open Tools API (OTA) that intercepts the Insert key and replace it with the context menu instead. Watch as we work through compile errors, fix a crash-on-uninstall bug, and iterate on different approaches to remapping the key — all driven by AI pair programming in a browser. Watch Here
Topics covered:
- IOTAKeyboardBinding and the OTA keyboard services
- Registering and cleanly unregistering design-time packages
- Debugging an access violation on package unload
- Using WM_CONTEXTMENU as a key remap target
I had Claude write this description, although we never fixed the "exception after uninstall" bug. Still it's quite a fun watch. I think I'll vacuum my keyboard next time before making a thumbnail.