Is there a keyboard shortcut or hotkey to toggle Lightning Mode?


#1

Lightning mode is a lifesaver but sometimes I come across an entry where I want to review the mnemonic for the meaning/pronunciation even though I’m going to get the answer right. As it is, I have to manually mouse up and click the lightning icon do disable it but is there any way to assign a hotkey to that or does it have one already that I’m missing?

Thanks!


#2

Are you using this Lightning Mode script?  There’s no hotkey, but I might be able to adc one.  Just thinking, though… in lightning mode, the answer field is active by default, so any keys you press would be interpreted as part of your answer.  Assuming I could intercept the keys, it would probably have to be a ctrl character.  (e.g. ctrl-L).  Alternatively, I could intercept the checkAnswer function, and look for a ‘?’ at the end of the answer…  not exactly intuitive, but it would work.  Might be less work just to click the icon, depending how often you use it.


#3

That is indeed the one I’m using.

>though… in lightning mode, the answer field is active by default, so any keys you press would be interpreted as part of your answer.

Ah, that is a very good point actually. Probably why there isn’t one in there already. You’re right then, probably much easier to just keep clicking the icon.

Thanks for the response and the script! Also, loving our black cat avatar synergy here. :smiley:


#4
rfindley said... Are you using this Lightning Mode script?  There's no hotkey, but I might be able to adc one.  Just thinking, though... in lightning mode, the answer field is active by default, so any keys you press would be interpreted as part of your answer.  Assuming I could intercept the keys, it would probably have to be a ctrl character.  (e.g. ctrl-L).  Alternatively, I could intercept the checkAnswer function, and look for a '?' at the end of the answer...  not exactly intuitive, but it would work.  Might be less work just to click the icon, depending how often you use it.
 Wouldn't it be possible to use a key that's not used for answer input, like the special characters 'below' numbers like &é"'(§è!çà)  ?
I use these in the Anki mode script where the answer field is also active (at least in the KW one). To solve the input of a weird character you let the keylistener delete it from the answer field immediately.

EDIT: just looked up a QWERTY keyboard and the numbers and characters are reversed :/
But my point still stands I guess because I don't think WK accepts numbers (unless you made them user synonyms).
Or the ~ character, which is in the same place as my <

EDIT 2: COMBO BREAKER. I used to be black though ;p