mcamac/crosswords

More key bindings

Opened this issue · 4 comments

hftf commented

New

  • home → beginning of word
  • end → end of word
  • ctrl-home → beginning of puzzle (first white cell)
  • ctrl-end → end of puzzle (last white cell)
  • delete → clear current square without moving
  • ctrl-backspace → clear from current square to beginning of word, move to beginning of word
  • ctrl-delete → clear from current square to end of word without moving
  • shift-enter, insert → enter rebus mode (see #5)

Backwards-incompatible changes

  • enter → switch direction (replaces space)
  • space → clear current square and move forward

Turns out Macs don't have end or (traditional) delete keys. Fun.
I propose shift-left, shift-right, shift-up, and shift-down for skipping until the end of a word in those directions.

hftf commented

home is like ctrl-a or cmd-left
end is like ctrl-e or cmd-right
delete is like fn-backspace

I still vote for having home/end/delete shortcuts along with mac aliases

Sounds good. I prefer shift because ctrl/cmd are usually already aliased to things.

hftf commented

How about this:

home, (isMac and cmd-left) → beginning of word
end, (isMac and cmd-right) → end of word
ctrl-home, (isMac and ctrl-cmd-left) → beginning of puzzle (first white cell)
ctrl-end, (isMac and ctrl-cmd-right) → end of puzzle (last white cell)

shift-up → move to beginning of Down word without changing direction
shift-down → move to end of Down word without changing direction
shift-left → move to beginning of Across word without changing direction
shift-right → move to end of Across word without changing direction

What to do about delete? Just delete should be acceptable because fn-backspace triggers the correct delete keyCode (n.b. fn by itself doesn't trigger anything at all). Thus ctrl-delete would just be activated by ctrl-fn-backspace as expected.

Remember that these will eventually be configurable (#22).


How much should we consolidate key mappings in existing crossword software?
XWord: 1 2
Across Lite: 1