diff --git a/src/xschem.tcl b/src/xschem.tcl index b11139ac..f9985762 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -8575,7 +8575,9 @@ global env has_x OS autofocus_mainwindow bind $topwin "xschem callback %W %T %x %y 0 %b 0 %s" } bind $topwin "xschem callback %W %T %x %y 0 %b 0 %s" - bind $topwin "xschem callback %W %T %x %y %N 0 0 %s" + bind $topwin " + if {{%K} eq {Escape}} { destroy .ctxmenu } + xschem callback %W %T %x %y %N 0 0 %s" bind $topwin "xschem callback %W %T %x %y %N 0 0 %s" if {$autofocus_mainwindow} { bind $topwin "focus $topwin; xschem callback %W %T %x %y 0 0 0 %s"