Make peg removal accessible from the keyboard.

[originally from svn r6032]
This commit is contained in:
Jacob Nevins
2005-06-28 18:10:20 +00:00
parent ea172a0460
commit 1c896ef18b
2 changed files with 6 additions and 1 deletions

View File

@ -714,6 +714,10 @@ static char *interpret_move(game_state *from, game_ui *ui, game_drawstate *ds,
set_peg(&from->params, ui, ui->peg_cur, ui->colour_cur+1); set_peg(&from->params, ui, ui->peg_cur, ui->colour_cur+1);
ret = ""; ret = "";
} }
} else if (button == 'D' || button == 'd' || button == '\b') {
ui->display_cur = 1;
set_peg(&from->params, ui, ui->peg_cur, 0);
ret = "";
} else if (button == 'H' || button == 'h') { } else if (button == 'H' || button == 'h') {
ui->display_cur = 1; ui->display_cur = 1;
ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur]; ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur];

View File

@ -1077,7 +1077,8 @@ after marking.
Alternatively, with the keyboard, the up and down cursor keys can be Alternatively, with the keyboard, the up and down cursor keys can be
used to select a peg colour, the left and right keys to select a used to select a peg colour, the left and right keys to select a
peg position, and the space bar or Enter key to place a peg of the peg position, and the space bar or Enter key to place a peg of the
selected colour in the chosen position. \q{H} adds a hold marker. selected colour in the chosen position. \q{D} or Backspace removes a
peg, and \q{H} adds a hold marker.
When the guess is complete, the smaller feedback pegs will be highlighted; When the guess is complete, the smaller feedback pegs will be highlighted;
clicking on these (or moving the peg cursor to them with the arrow keys clicking on these (or moving the peg cursor to them with the arrow keys