Pressing ESC in the skip-worktree confirmation dialog box selects 'yes'
By ...@luminance.org on September 25, 2014 04:14 (imported from Google Code)
What steps will reproduce the problem?
- Accidentally (or intentionally, I guess!) click the skip-worktree option in the context menu for a file in the commit dialog box
- See 'Yes/No' confirmation dialog box
- Press ESC
What is the expected output? What do you see instead?
ESC should suppress the skip-worktree operation as if you had clicked no. ESC is universally used to cancel modal dialogs on windows.
Instead, tgit silently flags the file as skip-worktree and refreshes the commit window, hiding it.
What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 188.8.131.52 (C:\Program Files\TortoiseGit\bin)
git version 1.9.4.msysgit.0 (C:\Program Files (x86)\Git\bin)
Please provide any additional information below.
I think this is because you are marking the 'No' button as default, so Enter presumably activates it (which is probably what you want?) but I think as a result this makes the 'Yes' button the system Cancel button and as a result ESC triggers it.
Ideally files you've flagged as skip-worktree that were previously tracked in the repository should show up in the commit window with a flag like 'skip-worktree' in the status column (it's fine if you have a filter to hide them, I guess) since it's really easy to accidentally end up in a state where your files are invisible.