core icon indicating copy to clipboard operation
core copied to clipboard

Could add mechanism to find if anything is currently selected within window, to update active status of copy / cut

Open rcoreilly opened this issue 7 years ago • 1 comments

Currently, paste is updated based on clipboard having something.

Copy and Cut are not updated and always show as enabled (active).

Probably most reliable mechanism is to just search tree for any selected items, and have a generic method called "HasSelection" that each element can report back about.

Trying to have a global flag on window that is updated with selection / deselection events seems doomed to fail -- would need a counter of some sort, and it might be tough to ensure each selection is balanced by appropriate deselection etc. This would be faster but the tree crawl likely wins due to robustness and wouldn't be very slow really, on the scale of when menus are updated.

rcoreilly avatar Aug 25 '18 20:08 rcoreilly

probably not worth it -- putting at lowpri.

rcoreilly avatar Jan 18 '20 09:01 rcoreilly