mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 05:07:54 -05:00
My memory is a little vague here, but I believe the point of handling the menu keys was to workaround a bug in NSMenu. The bug was that NSMenu would look at (the target of) cached menu items, probably for UI validation, so potentially sending methods to unretained objects, which could lead to a crash. Several workarounds were attempted (like clearing the target property after the menu had been displayed) but the only effective one was overloading key handling. I’m quite sure though that this bug is no longer relevant.