Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Keybinds don't execute #5689

Closed
DrBuhu opened this issue Mar 30, 2025 · 5 comments
Closed

Some Keybinds don't execute #5689

DrBuhu opened this issue Mar 30, 2025 · 5 comments

Comments

@DrBuhu
Copy link

DrBuhu commented Mar 30, 2025

The bug

wasn't able to get ctrl space to work, not sure why or if i need to override something

Bindings=[
        ("ctrl+space", "toggle_dark", "cahnge theme"),
]

Same for commands with shift

shfit+ j


Textual Diagnostics

Versions

Name Value
Textual 3.0.0
Rich 13.9.4

Python

Name Value
Version 3.13.2
Implementation CPython
Compiler GCC 14.2.1 20250128
Executable /home/d-d/Mewsic-Maid/venv/bin/python3

Operating System

Name Value
System Linux
Release 6.13.8-arch1-1
Version #1 SMP PREEMPT_DYNAMIC Sun, 23 Mar 2025 17:17:30 +0000

Terminal

Name Value
Terminal Application kgx (48.0.1)
TERM xterm-256color
COLORTERM truecolor
FORCE_COLOR Not set
NO_COLOR Not set

Rich Console options

Name Value
size width=158, height=41
legacy_windows False
min_width 1
max_width 158
is_terminal True
encoding utf-8
max_height 41
justify None
overflow None
no_wrap False
highlight None
markup None
height None

If you don't have the `textual` command on your path, you may have forgotten to install the `textual-dev` package.

Feel free to add screenshots and / or videos. These can be very helpful!
Copy link

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

Not all key combinations can be detected in terminals. Some are captured by the OS or the terminal emulator.

Run textual keys to see what keys are supported.

There is no shift+j, as that produces J.

@l-konrad
Copy link

So it's not possible to detect shift?

@willmcgugan
Copy link
Collaborator

It is indeed possible to detect shift. But shift plus a printable character typically produces a capital. Run textual keys to see what keys are detected.

Copy link

github-actions bot commented Apr 9, 2025

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants