                                 m="toggle_mask",
                                 r="refresh",
                                 s="save",
                                 enter="quit")
          self._reassign_keys()
  
      def _toggle_size(self) -> None:  # pylint:disable=unused-argument
          """ Toggle between actual size and screen-fit size. """
          self._triggers["full_size"] = not self._triggers["full_size"]
          self._set_resize_callback()
 
</s> remove     def _reassign_keys(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings. """
 </s> add     def _configure_matplotlib(cls):
        """ Remove `F`, 'S' and 'R' from their default bindings and stop Matplotlib from stealing
        focus """ </s> remove         plt.show(block=False)
 </s> add  </s> remove         legacy_defaults = dict(centering="legacy",
                               mask_loss_function="mse",
                               l2_reg_term=100,
                               optimizer="adam",
                               mixed_precision=False)
 </s> add         legacy_defaults: Dict[str, Union[str, int, bool]] = dict(centering="legacy",
                                                                 mask_loss_function="mse",
                                                                 l2_reg_term=100,
                                                                 optimizer="adam",
                                                                 mixed_precision=False)
        self._configure_matplotlib()
                                 m="toggle_mask",
                                 r="refresh",
                                 s="save",
                                 enter="quit")
        self._configure_matplotlib()
  
      def _toggle_size(self) -> None:  # pylint:disable=unused-argument
          """ Toggle between actual size and screen-fit size. """
          self._triggers["full_size"] = not self._triggers["full_size"]
          self._set_resize_callback()
keep keep keep keep replace keep keep keep keep keep
 bugfix: Stop preview window from stealing focus 
scripts/train.py