| 738 | } |
| 739 | |
| 740 | static void FKB_CheckShortcutConflicts(void) |
| 741 | { |
| 742 | bool fkbActv; |
| 743 | QShortcut *shortcut; |
| 744 | |
| 745 | fkbActv = g_fkbEnabled && (CurInputType[2] == SIFC_FKB); |
| 746 | |
| 747 | for (int i = 0; i < HK_MAX; i++) |
| 748 | { |
| 749 | shortcut = Hotkeys[i].getShortcut(); |
| 750 | |
| 751 | if (i == HK_FKB_ENABLE) |
| 752 | { |
| 753 | if (shortcut) |
| 754 | { |
| 755 | shortcut->setEnabled(true); |
| 756 | } |
| 757 | continue; |
| 758 | } |
| 759 | |
| 760 | if (shortcut) |
| 761 | { |
| 762 | shortcut->setEnabled(!fkbActv); |
| 763 | } |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | void toggleFamilyKeyboardFunc(void) |
| 768 | { |
no test coverage detected