Skip to content

Commit

Permalink
Merge pull request #440 from jitseniesen/give-focus
Browse files Browse the repository at this point in the history
Give focus to plugin when switching to it
  • Loading branch information
jitseniesen authored Jan 14, 2025
2 parents 1fb61e2 + d05a724 commit c847f55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spyder_notebook/notebookplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class NotebookPlugin(SpyderDockablePlugin):
WIDGET_CLASS = NotebookMainWidget
CONF_WIDGET_CLASS = NotebookConfigPage

# Action "Switch to notebook" gives focus to the plugin
RAISE_AND_FOCUS = True

# ---- SpyderDockablePlugin API
# ------------------------------------------------------------------------
@staticmethod
Expand Down

0 comments on commit c847f55

Please sign in to comment.