Dismiss git commit modal when it's out of focus (#25518)

Release Notes:

- Fix git commit modal not being dismissed when pressing esc key or
clicking outside the modal
10fef92eeaAnthony Eid committed on 2/25/2025, 12:09:46 AM· committed by GitHubparent3ee4edc
1 file changedLine totals unavailable