Comments (2)
Hey @chrisstjohn, thanks for your issue.
When I run dictionary.py
and I TAB around, I can focus the vertical scroll and I get a blue border showing me where the focus is.
Don't you get a similar visual indication in your app?
If you don't, you can use TCSS and the :focus
pseudoclass to add a visual indication when your focus is in another widget.
To me, it makes sense that the VerticalScroll
in dictionary.py
is focusable even when there's nothing to scroll.
I feel it's similar to how you're able to focus a button with TAB, regardless of whether clicking that button does something or not.
Now, what I'm focusing is a VerticalScroll
and not a Markdown
widget, so maybe there's some confusion in your case and focus is actually going somewhere else (you also can't see?).
Maybe share an MRE of your app/context.
from textual.
@chrisstjohn IDK if this will help you in any way, but I'll leave a link to #3717
from textual.
Related Issues (20)
- Env var to modify animation HOT 3
- Editing CSS with e.g. vim can crash an app HOT 8
- Code blocks in Markdown widget do not respect the "theme" setting. HOT 1
- A style after a nested section in CSS causes a CSS parsing error HOT 8
- Commemorative 4000th issue
- Delayed initialization in reactivity
- [FEAT] Icon buttons HOT 3
- lag makes the example app unusable HOT 1
- Empty children at instantiation HOT 5
- Add FAQ/docs about issues with IDE terminals HOT 1
- Content Disappearing on with nested `width: auto` widgets HOT 6
- Clarify docs about creating custom widgets HOT 5
- Scrolling in long OptionList doesn't accompany keyboard navigation by default HOT 5
- Awaiting the mount of many widgets may break the app HOT 3
- Incorrect width calculation with buttons in a horizontal container that has `width: auto` HOT 1
- [IGNORE] Why doesn't the DataTable scroll programmatically? HOT 5
- Ignore CSS styling in `DirectoryTree` HOT 4
- Pong is usually played with up/down keys HOT 3
- Windows duplicates Escape key input. HOT 4
- Nested TCSS interacts poorly with pseudo-classes in selectors. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textual.