Skip to content

Commit

Permalink
Added support for KiCad 7.0.7 ERC dialog behavior
Browse files Browse the repository at this point in the history
No longer closed by ESC, but we can use the patched button.
  • Loading branch information
set-soft committed Aug 8, 2023
1 parent f43bb84 commit 0a7fdbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eeschema_do
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ def eeschema_run_erc_schematic_6_0_n(cfg):
logger.info('Exit ERC')
wait_point(cfg)
xdotool(['key', 'Escape'])
# KiCad 7.0.7 lack of ESC support
xdotool(['key', 'shift+Tab', 'shift+Tab', 'Return'])


def eeschema_run_erc_schematic_6_0_i(cfg):
Expand Down Expand Up @@ -524,7 +526,9 @@ def eeschema_run_erc_schematic_6_0_i(cfg):
# Wait until created
wait_create_i(cfg, 'ERC', forced_ext='rpt')
# Close the ERC dialog
send_keys(cfg, 'Exit ERC', 'Escape', closes=dialog, no_destroy=cfg.ki8)
# KiCad 7.0.7 no longer closes this dialog with ESC
# send_keys(cfg, 'Exit ERC', 'Escape', closes=dialog, no_destroy=cfg.ki8)
send_keys(cfg, 'Exit ERC', 'alt+l', closes=dialog, no_destroy=cfg.ki8)


def eeschema_run_erc_schematic(cfg):
Expand Down

0 comments on commit 0a7fdbb

Please sign in to comment.