stsievert / salmon

A tool to collect triplet queries
https://docs.stsievert.com/salmon/
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Allow arrow key button presses to select answers #121

Closed kushinm closed 3 years ago

kushinm commented 3 years ago

Feature request for allowing users to use left right arrow keys to select their responses as opposed to manually clicking

stsievert commented 3 years ago

Thanks for the request. I think this should be specified in the init.yaml. I'll make Salmon default to enabling this behavior (given that this is one of the first things Tim asked about).

Would this work?

# init.yaml
targets: [0, 1, 2, 3, 4, 5, 6]
samplers:
  Random: {}
html_config:
  arrow_keys: false  # defaults to true

Got a better name for html_config? It will also include the init.yaml css and skip_button keys (docs).

This would also allow easier customization of the query page.

kushinm commented 3 years ago

html_config seems pretty reasonable and that boolean parameter seems great!