Dave Pearson
685f13cfcd
Drop the app namespace from some binding actions
...
It had been suggested to me that these would be needed, but in testing here
I'm not seeing that. So, until I find out otherwise, let's simplify things
and drop that.
2022-10-20 08:43:57 +01:00
Dave Pearson
c629826940
Be nice to the vi(m) crowd
2022-10-20 08:42:38 +01:00
Dave Pearson
4ab660a02a
Drop 'h' as a help key01
...
I'm going to repurpos.e it
2022-10-20 08:37:51 +01:00
Dave Pearson
b3d8ebb2f4
Simplify the tests for a focused game cell
2022-10-19 21:28:50 +01:00
Dave Pearson
59fb6f1ec5
Declutter the status line
2022-10-19 21:23:17 +01:00
Dave Pearson
aa4e4fe2cc
Move all the new game logic into the new game action
2022-10-19 21:18:21 +01:00
Dave Pearson
be997409e0
Add keyboard navigation
...
Uses arrow keys or WASD.
Also note moving the dark mode toggle off 'd' and onto 'D'.
2022-10-19 21:13:41 +01:00
Dave Pearson
851a759e67
Add a central method for getting a cell
...
Also settle focus on the middle cell at the start of a game -- this is the
start of adding keyboard navigation.
2022-10-19 20:50:19 +01:00
Dave Pearson
eb11984442
Simplify toggle_cells
...
Rather than repeat the same code over a number of lines, use a loop.
2022-10-19 20:42:25 +01:00
Dave Pearson
056fb70e2a
Stop overloading the cell IDs as cargo/data
...
Originally I was doing everything in the DOM, using just the primitive
widgets. Given that I recently created an actual GameCell widget (which
simply inherits from a Button, but still...) it makes sense to now have
row/col properties as part of that.
2022-10-19 20:16:28 +01:00
Dave Pearson
41bf93abf4
Correct binding to the escape key
2022-10-19 20:10:08 +01:00
Dave Pearson
06d1865acc
Add 5x5 as an example
...
*evil grin*
2022-10-19 16:47:25 +01:00