mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tweaks
This commit is contained in:
@@ -931,7 +931,7 @@ class App(Generic[ReturnType], DOMNode):
|
||||
widget (Widget): Widget to focus.
|
||||
scroll_visible (bool, optional): Scroll widget in to view.
|
||||
"""
|
||||
if widget == self.focused:
|
||||
if widget is self.focused:
|
||||
# Widget is already focused
|
||||
return
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ from .. import events
|
||||
from .._segment_tools import line_crop
|
||||
from ..binding import Binding
|
||||
from ..geometry import Size
|
||||
from ..message import Message, MessageTarget
|
||||
from ..message import Message
|
||||
from ..reactive import reactive
|
||||
from ..widget import Widget
|
||||
|
||||
|
||||
Reference in New Issue
Block a user