Fix context menu not refocusing the terminal after it closes
Fixes #299 (closed).
I updated the closed event on the popover to refocus the terminal after it destroys itself.
The issue no longer appears after copying, pasting, opening an additional dialog (about, settings) etc.
Edited by Paulo Queiroz