Cancel dragging in Pearl by pressing Escape or Backspace.

This commit is contained in:
Jonas Kölker
2015-09-22 11:41:41 +02:00
committed by Simon Tatham
parent bf8ff09a84
commit ea8da331e3
2 changed files with 9 additions and 3 deletions

View File

@ -2058,6 +2058,11 @@ static char *interpret_move(const game_state *state, game_ui *ui,
}
}
if (button == 27 || button == '\b') {
ui->ndragcoords = -1;
return "";
}
if (release) {
if (ui->ndragcoords > 0) {
/* End of a drag: process the cached line data. */