refactor: improve formatting and readability in ShortcutHelper, DisplayZone, and KeyPressListener components
This commit is contained in:
@@ -221,8 +221,12 @@ const KeyPressListener: React.FC = () => {
|
||||
|
||||
// Shortcuts specific for sidebar visibility toggle and others specific to sidebar if added
|
||||
handleSidebarShortcuts(keyCombination);
|
||||
|
||||
|
||||
// Active module selection (builder, simulation, etc.)
|
||||
handleModuleSwitch(keyCombination);
|
||||
if (event.location === 0) { // Location 0 = standard keyboard (not numpad)
|
||||
handleModuleSwitch(keyCombination);
|
||||
}
|
||||
// Common editing tools: cursor | delete | free-hand
|
||||
handlePrimaryTools(keyCombination);
|
||||
// Shortcuts specific to the builder module (e.g., drawing and measurement tools)
|
||||
|
||||
Reference in New Issue
Block a user