WuTheFWasThat / vimflowy

An open source productivity tool drawing inspiration from workflowy and vim
https://www.wuthejeff.com/vimflowy
MIT License
1.6k stars 111 forks source link

tilde is interpreted as double quote #268

Open willprice opened 7 years ago

willprice commented 7 years ago

Swaping case on a letter by pressing ~ is misinterpreted as ".

Log just after pressing ~:

...
Handling key: "
app.js:6 Update took 52
app.js:6 Update took 22
...

I'm on a UK (GB) keyboard UK Keyboard layout

Let me know how I can help further debug this.

WuTheFWasThat commented 7 years ago

I currently assume a fixed mapping from characters to their shift-held equivalents. It will require some reworking of the key handling logic to fix this. See #262 for why i think it's tricky

willprice commented 7 years ago

How come you can't use keypress? My understanding is that should give you the actual keypress regardless of keyboard layout.