Unvanquished icon indicating copy to clipboard operation
Unvanquished copied to clipboard

ESC should interrupt download when connecting to server

Open RamchandraApte opened this issue 10 years ago • 4 comments

When connecting to a server, downloads (of maps, etc) can take a long time, so ESC should interrupt the download. Using the console and typing disconnect works, so I think it should be pretty easy to make ESC disconnect.

RamchandraApte avatar Feb 28 '16 06:02 RamchandraApte

You can bind it if you want.

mbasaglia avatar Feb 28 '16 08:02 mbasaglia

Esc already opens up the inagme menu. Also, binds aren't active at this stage. It is a simple fix however: onKeyDown="function (event, ...) if event.params.key == rocket.key.ESCAPE then Cmd.Exec('disconnect') end end"

DolceTriade avatar Feb 28 '16 08:02 DolceTriade

Would that interfere with Shift+Esc?

mbasaglia avatar Feb 28 '16 14:02 mbasaglia

Nah, this escape would only be handled when this particular menu is open. Shift-Esc is handled at the engine level, so this wouldn't interfere.

DolceTriade avatar Feb 28 '16 21:02 DolceTriade