grabkey returns before it asks for the mask when there is no keyboard state, so the guard inside modmask answered a question nobody put to it -- except the test, which was the only caller that could reach it. A check kept alive by the test that reaches it is one line of code and one line of test to delete. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2.8 KiB
2.8 KiB