7 Module implementing functions dealing with keyboard shortcuts. |
7 Module implementing functions dealing with keyboard shortcuts. |
8 """ |
8 """ |
9 |
9 |
10 import contextlib |
10 import contextlib |
11 |
11 |
12 from PyQt6.QtCore import QFile, QIODevice, QCoreApplication |
12 from PyQt6.QtCore import QCoreApplication, QFile, QIODevice |
13 from PyQt6.QtGui import QKeySequence |
13 from PyQt6.QtGui import QKeySequence |
14 |
14 |
|
15 from eric7.EricWidgets import EricMessageBox |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets import EricMessageBox |
|
17 |
|
18 from eric7.Preferences import Prefs, syncPreferences |
17 from eric7.Preferences import Prefs, syncPreferences |
19 |
18 |
20 |
19 |
21 def __readShortcut(act, category, prefClass): |
20 def __readShortcut(act, category, prefClass): |
22 """ |
21 """ |