I have seen there are a number of other closed issues related to the add split shortcuts so I'll understand if this fits into the same category (won't fix, works as intended). I figured it was worth raising anyway as this is a edge case in the UI that bites me now and then. Also I'm aware I could change the shortcut but I'm used to the default at this point and would prefer to not have to change it everywhere I use Tilix if possible.
Steps to reproduce:
It appears that when maximised Tilix doesn't intercept the shortcut so it goes to the terminal, which sees Ctrl-d and closes.
Expected behaviour (some ideas):
Honestly the default shortcut choice is poor, when I selected it I wasn't aware of ctrl-alt-d closing the terminal. Tilix should either eat the shortcut everywhere or change it to a better default.
Actually I'm looking at this again, isn't ctrl-shift-d the shortcut that closes the terminal? ctrl-alt-d works fine for me, when I maximize the terminal and hit that shortcut I see the bell go off but that's it, the terminal doesn't actually close.
For me the terminal closes when pressing Ctrl+d
It appears to be shell specific. I use zsh and the issue presents itself when using it (I.e. the terminal closes if I type Ctrl+Alt+d into a maximized pane). If I run bash instead the terminal does not close.
The issue is that the tiling actions are disabled when the terminal is maximized which is why the buttons in the headerbar are disabled. Unfortunately GTK doesn't swallow the shortcut for disabled actions which is why it goes through to the terminal. I'm not sure if there is a good solution for this, I'll have to look into it further.
Since it's shell specific it wouldn't be unreasonable to close this issue. Now that I know it's zsh I might be able to find a way to prevent it from exiting on that shortcut.
Thanks @wezm, I'm also not seeing any easy way to handle this in tilix that wouldn't have to cover various edge cases and be complicated. I'm closing the issue, it can be re-opened if someone has a new proposal.