onivim/oni

Keyboard switching issue/Can't type quote

Open

#1058 aperta il 2 dic 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)TypeScript (336 fork)batch import
bughelp wantedi18ninsider

Metriche repository

Star
 (11.389 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I realise this is a weirdly specific error, but something in Oni isn't able to keep up with the Windows language swapping.

I swap back and forth between the British and US English keyboard layouts depending on what keyboard I have plugged in, and what I'm typing at the time. Oni can deal with both of these, if I open Oni with the required layout enabled, but if I swap whilst Oni is open I get some weird behaviour where the " key doesn't work and perhaps others, but I notice that one the most.

For example:

  • Open Oni in US Layout
  • Realise that I'm writing a report in Latex that deals with money, so I swap to the UK layout to get the £ symbol more easily.
  • Then " doesn't work anymore in the UK layout, but if I swap back to US it works fine.

Debug logs below:

In both cases the first prints a " to the window and the second does not, I assume because it is being picked up as <Shift - ">.

Obviously low priority, and I wasn't even sure if this was an issue of ours or the package we use.

Guida contributor