Skip to content

Commit dcad9f4

Browse files
authored
Apply suggestions from code review
1 parent 49f8786 commit dcad9f4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -946,13 +946,13 @@ def mathCATPreferencesDialogOnCharHook(self, event: wx.KeyEvent) -> None:
946946
This method interprets specific key presses to mimic button clicks or
947947
navigate within the preferences dialog:
948948
949-
- Escape: Triggers the Cancel button functionality.
950-
- Enter: Triggers the OK button functionality.
951-
- Ctrl+Tab: Cycles forward through the preference categories.
952-
- Ctrl+Shift+Tab: Cycles backward through the preference categories.
953-
- Tab: Moves focus to the first control in the currently selected category,
949+
- escape: Triggers the Cancel button functionality.
950+
- enter: Triggers the OK button functionality.
951+
- ctrl+tab: Cycles forward through the preference categories.
952+
- ctrl+shift+tab: Cycles backward through the preference categories.
953+
- tab: Moves focus to the first control in the currently selected category,
954954
if the category list has focus.
955-
- Shift+Tab: Moves focus to the second row of controls,
955+
- shift+tab: Moves focus to the second row of controls,
956956
if the OK button has focus.
957957
958958
If none of these keys are matched, the event is skipped to allow default processing.

addon/globalPlugins/MathCAT/MathCATgui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MathCATPreferencesDialog(wx.Dialog):
1818
This base class sets up the layout and controls.
1919
"""
2020

21-
def __init__(self, parent):
21+
def __init__(self, parent: wx.Window | None):
2222
"""Initialize the preferences dialog.
2323
2424
:param parent: The parent window for this dialog.

0 commit comments

Comments
 (0)