# Customize Keyboard Shortcuts

**URL:** <https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549>\
**Category:** Suggestions\
**Created:** [April 24, 2021, 1:11pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549 "2021-04-24T13:11:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [April 24, 2021, 1:11pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/1 "2021-04-24T13:11:03Z")

</div>

It’s not a trivial issue: people with international keyboard layouts just can’t use some of the predefined keyboard shortcuts for some commands(for example, the @ symbol to suspend card) and must use the mouse instead.

Yes, I know that there are some addons just for that (for example, [Customize Keyboard Shortcuts - AnkiWeb](https://ankiweb.net/shared/info/24411424) ), but some of us try to avoid installing addons, and it would be just great if this function would be implemented in the main program.

Thanks for considering.

---

<div class="post-metadata">

**Author:** ![hengiesel](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/hengiesel/32/920_2.png) [@hengiesel](https://forums.ankiweb.net/u/hengiesel)\
**Post date:** [April 24, 2021, 1:41pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/2 "2021-04-24T13:41:40Z")

</div>

Shortcuts should listen to actual keys rather than the characters produced by the keys, which I think would solve this issue easier.  
So rather than listening to “@”, it should listen to “Shift+2”. However it seems this is not possible with Qt. But it is possible, if we integrate the shortcuts into the web view. I will prepare a patch to Anki for this 🙂

Do you have any other windows other than the reviewer, where you noticed this?

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [April 24, 2021, 1:48pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/3 "2021-04-24T13:48:48Z")

</div>

Thanks very much!

The @ - suspend card has been the only non-working shortcut I’ve found until now (I’m using a spanish keyboard layout), but I will take a look and report if I find another one, for sure.

---

<div class="post-metadata">

**Author:** ![Joe2337](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Joe2337](https://forums.ankiweb.net/u/Joe2337)\
**Post date:** [June 4, 2021, 2:43pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/4 "2021-06-04T14:43:05Z")

</div>

@hengiesel  
Thanks for taking on this, just for your information: I played around a bit and the “@” character actually arrives in the event loop for a non-English keyboard layout (at least when an event filter is installed). Maybe there’s a good reason for not using this in Anki though, I didn’t look at how the shortcuts are currently implemented.

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [September 27, 2021, 6:04am UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/5 "2021-09-27T06:04:39Z")

</div>

Hi, @hengiesel , any news on this? 🙂

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [December 14, 2021, 12:36pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/6 "2021-12-14T12:36:10Z")

</div>

> [@cqg](#):
>
> It’s not a trivial issue: people with international keyboard layouts just can’t use some of the predefined keyboard shortcuts for some commands(for example, the @ symbol to suspend card) and must use the mouse instead.

Solved from 2.1.50 (Qt 5.15.2)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 15, 2021, 10:10am UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/7 "2021-12-15T10:10:05Z")

</div>

@cqg so the problem doesn’t happen in beta 2 on the qt5 or qt6 build? Could you please try something for me?

If you edit anki-console.bat in the Anki program folder, and add this line at the top:

set QT\_QPA\_PLATFORM=windows:altgr

Then start Anki with that .bat file, does that cause the problem to come back again?

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [December 15, 2021, 5:31pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/8 "2021-12-15T17:31:59Z")

</div>

Yes, the problem doesn’t happen in either qt5 or qt6, but starting the program with the altgr setting brings the problem back in both versions.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 16, 2021, 11:15am UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/9 "2021-12-16T11:15:43Z")

</div>

Thanks for confirming that. Unfortunately it’s bad news 🙁 That option was going to be the default in the next beta, as it solves this problem: [AltGr issues on Anki Windows. AltGr + 4 for $ and AltGr+2 for @ do not work - #7 by MedBooster](https://forums.ankiweb.net/t/altgr-issues-on-anki-windows-altgr-4-for-and-altgr-2-for-do-not-work/14588/7)

@cqg @Rumo @hengiesel and others: Since it seems we can’t solve both problems at the same time, am I correct in assuming that we’re better off with the AltGr fix than trying to fix the issue on this thread?

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [December 16, 2021, 1:42pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/10 "2021-12-16T13:42:54Z")

</div>

> [@dae](#):
>
> am I correct in assuming that we’re better off with the AltGr fix than trying to fix the issue on this thread?

I’d say so, yes.  
Suspending is still possible with Ctrl+Alt+Q (“@” is AltGr+Q on my keyboard), so my guess would be that the missing environment variable caused this sequence to be triggered, rather than correctly handling AltGr.

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [December 16, 2021, 6:26pm UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/11 "2021-12-16T18:26:24Z")

</div>

Yes, the problem describred here is not a serious issue at all, but in the long run, would it be possible to implement custom shortcuts, or this is an impossible / unrealistic option?

Also, I’m sure I’m missing something here, but would it be possible to avoid potentially conflictive shortcuts (like the @ or [ symbols) and use more standard combinations instead?

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 18, 2021, 3:09am UTC](https://forums.ankiweb.net/t/customize-keyboard-shortcuts/9549/12 "2021-12-18T03:09:22Z")

</div>

A customize shortcuts feature may come in the future, but is not at the top of the todo list at the moment.

Anki has quite a few shortcuts, and picking “good” ones that resemble the action name and don’t conflict on any platform is trickier than you might expect.
