Same Game: don't hide keyboard cursor on unrecognised keys

Pressing "undo", for instance, should leave the keyboard cursor
visible if it's visible already.  Only mouse clicks should hide it.
This commit is contained in:
Ben Harris
2023-07-31 23:02:45 +01:00
parent 56237fa5fa
commit ecb3a9d6f2

View File

@ -1289,9 +1289,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
int tx, ty; int tx, ty;
char *ret = MOVE_UI_UPDATE; char *ret = MOVE_UI_UPDATE;
ui->displaysel = false;
if (button == RIGHT_BUTTON || button == LEFT_BUTTON) { if (button == RIGHT_BUTTON || button == LEFT_BUTTON) {
ui->displaysel = false;
tx = FROMCOORD(x); ty= FROMCOORD(y); tx = FROMCOORD(x); ty= FROMCOORD(y);
} else if (IS_CURSOR_MOVE(button)) { } else if (IS_CURSOR_MOVE(button)) {
int dx = 0, dy = 0; int dx = 0, dy = 0;