Gustaf-C / anki-chinese-support-3

Anki add-on providing support for Chinese study
https://ankiweb.net/shared/info/1752008591
GNU General Public License v3.0
26 stars 7 forks source link

Adding a note with CTRL + ENTER generates blank note #74

Closed arthurnocera closed 3 months ago

arthurnocera commented 3 months ago

When you try to add a note and instead of clicking the ADD button, you use the CTRL + ENTER shortcut it breaks the plugin, generating a blank note

Steps to reproduce the behavior:

  1. Create new note
  2. Choose Chinese (Basic)
  3. Type any word
  4. Press CTRL + ENTER to add note

Expected behavior Generate a note normally, like when you click the ADD button

Screenshot https://imgur.com/a/uxS11D0

Specs

Gustaf-C commented 3 months ago

Do you autofill the fields before pressing ctrl+enter?

arthurnocera commented 3 months ago

Do you autofill the fields before pressing ctrl+enter?

No, I wasn't. Now I press TAB to autofill first and then ctrl+enter, this way it works just fine. I wasn't aware of the autofill feature before.