-
Notifications
You must be signed in to change notification settings - Fork 62
fix: use B for back instead of Esc character
#1211
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
Conversation
Codecov Report❌ Patch coverage is
|
|
🎉 This PR is included in version 0.56.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
| import select | ||
| from datetime import datetime | ||
| from typing import Any | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input handling regression: Removing select breaks bare ESC handling
Without select, a lone ESC blocks on read(1). Keep select to non-blockingly detect escape sequences.
| import select |
| import select | ||
| from datetime import datetime | ||
| from typing import Any | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic bug: Back action only recognizes uppercase 'B'
Lowercase 'b' (common in fallback input mode and when users type without Shift) won’t trigger back. Accept both cases.
| # In _show_post_creation_menu loop | |
| elif key.lower() == "b": # Back to new tab | |
| self.current_tab = 1 # 'new' tab index | |
| self.input_mode = True | |
| break | |
| # In _handle_input_mode_keypress | |
| if key.lower() == "b": # Back action in new tab | |
| self.input_mode = False |
|
Found 2 issues. Please review my inline comments above. |
Motivation
Content
Testing
Please check the following before marking your PR as ready for review