diff options
| author | Jonas Kölker <jonaskoelker@yahoo.com> | 2015-09-22 11:41:41 +0200 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-03 16:59:10 +0100 |
| commit | ea8da331e361c96a7e563b0a91dc3535e0d1d545 (patch) | |
| tree | 035e6d28f96ebae1b9da299dd69fb38d42c46b93 | |
| parent | bf8ff09a84c129f0e3e66e18df61912871d4b6e3 (diff) | |
| download | puzzles-ea8da331e361c96a7e563b0a91dc3535e0d1d545.zip puzzles-ea8da331e361c96a7e563b0a91dc3535e0d1d545.tar.gz puzzles-ea8da331e361c96a7e563b0a91dc3535e0d1d545.tar.bz2 puzzles-ea8da331e361c96a7e563b0a91dc3535e0d1d545.tar.xz | |
Cancel dragging in Pearl by pressing Escape or Backspace.
| -rw-r--r-- | pearl.c | 5 | ||||
| -rw-r--r-- | puzzles.but | 7 |
2 files changed, 9 insertions, 3 deletions
@@ -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. */ diff --git a/puzzles.but b/puzzles.but index 4ab0d0b..3af6516 100644 --- a/puzzles.but +++ b/puzzles.but @@ -2989,9 +2989,10 @@ white clue has to be a corner, but don't yet know which way the corner turns, you might mark the one way it \e{can't} go with a cross.) Alternatively, use the cursor keys to move the cursor. Use the Enter -key to begin and end keyboard `drag' operations. Use the Space key to -cancel the drag. Or, hold Control while dragging with the cursor keys -to toggle segments as you move between squares. +key to begin and end keyboard `drag' operations. Use the Space, +Escape or Backspace keys to cancel the drag. Or, hold Control while +dragging with the cursor keys to toggle segments as you move between +squares. Pressing Control-Shift-arrowkey or Shift-arrowkey simulates a left or right click, respectively, on the edge in the direction of the key. |