Delete key after empty search triggers process closing dialog
Describe the bug Pressing the Delete key after entering a search term that yields no results triggers the process closing/confirmation dialog unexpectedly.
To Reproduce
- Launch ProcessSpy
- Enter a search term that will return no matching processes
- Press the Delete key
- Observe: the process closing dialog appears instead of simply deleting the search text
Expected behavior The Delete key should delete the search text character by character within the search field, or have no effect if the search field is empty. It should not trigger the process closing dialog when no process is selected.
Desktop (please complete the following information)
- macOS version: [your macOS version]
- ProcessSpy version: [your version]
- Mac system config (processor, RAM)
Additional context This appears to be a focus/input handling issue where the Delete key is being interpreted as a command to close the selected process rather than as a text editing key within the search field.
Hi @abd3lraouf,
thank you for reporting this. I was able to reproduce the alert dialog being shown when no process is selected. However I couldn't reproduce the case when Search field has focus and Delete key is pressed - that works as expected.
Could you double check? Maybe there is a specific sequence of actions that need to be performed in order?
Hi @abd3lraouf,
thank you for reporting this. I was able to reproduce the alert dialog being shown when no process is selected. However I couldn't reproduce the case when Search field has focus and Delete key is pressed - that works as expected.
Could you double check? Maybe there is a specific sequence of actions that need to be performed in order?
My bad. I meant to say the delete dialog was visible by pressing delete and when search returns nothing
This has been fixed in version 1.12.0