mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
[4191] fix: Move unfocusTextBox and aFocusChat shortcuts to Player group (#5079)
* [4191] fix: Move unfocusTextBox and aFocusChat shortcuts to Player family * [4191] fix: fix formatting * Revert "[4191] fix: fix formatting" This reverts commit 86a4a675f3bc8118d4ba8dd45f408c4e8c348f33. * Revert "[4191] fix: Move unfocusTextBox and aFocusChat shortcuts to Player family" This reverts commit 3ec183628df81c48123a8a248d0416c529ee0c8e. * [4191] fix: Textbox and tab_game shortcut groups cannot conflict with Player group * Revert "[4191] fix: Textbox and tab_game shortcut groups cannot conflict with Player group" This reverts commit 36800393339d997df1a932bb798f95d2d387399a. * [4191] fix: Move unfocusTextBox and aFocusChat shortcuts to Player family * [4191] fix: Migrate shortcuts if new version is detected * [4191] fix: formatting * [4191] fix: Maybe fix build issue on Windows7, Debian11, UbuntuBionic and UbuntuFocal
This commit is contained in:
parent
f0fb77bade
commit
3c40cc4b7d
5 changed files with 42 additions and 8 deletions
|
|
@ -35,7 +35,7 @@ bool LineEditUnfocusable::isUnfocusShortcut(QKeyEvent *event)
|
|||
keyNoMod = QKeySequence(event->key()).toString();
|
||||
|
||||
QKeySequence key(modifier + keyNoMod);
|
||||
QList<QKeySequence> unfocusShortcut = SettingsCache::instance().shortcuts().getShortcut("Textbox/unfocusTextBox");
|
||||
QList<QKeySequence> unfocusShortcut = SettingsCache::instance().shortcuts().getShortcut("Player/unfocusTextBox");
|
||||
|
||||
for (const auto &unfocusKey : unfocusShortcut) {
|
||||
if (key.matches(unfocusKey) == QKeySequence::ExactMatch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue