daig / daig/keycode

Provide browser-specific mapping

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently some patterns are partial because different browsers have different mappings. We'd like to include a way to choose a browser.

- The simplest way is to put browser specific mappings in separate modules
- This could be improved by interfacing with backpack
- A better way is to make the patterns members of a phantom class `HasKeyCodes browser`. The disadvantage is always needing to feed in the browser type in the type declaration. We could include the phantom type in the `KeyCode` constructor to choose the instance more easily

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.