Skip to content

Python Console: Fix handling of the tab key in the input pane (#11532)#11936

Merged
michaelDCurran merged 2 commits into
nvaccess:masterfrom
accessolutions:i11532-pythonConsoleTab
Jan 21, 2021
Merged

Python Console: Fix handling of the tab key in the input pane (#11532)#11936
michaelDCurran merged 2 commits into
nvaccess:masterfrom
accessolutions:i11532-pythonConsoleTab

Conversation

@JulienCochuyt

@JulienCochuyt JulienCochuyt commented Dec 13, 2020

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #11532

Summary of the issue:

Currently, when editing a non-empty input line, NVDA's Python Console does not support inserting a tab at the beginning of the line for indentation.
It does not support either performing tab-completion anywhere but at the end of an input line: This is fine when typing a new line, but limiting when editing an existing one.

Description of how this pull request fixes the issue:

Testing performed:

Known issues with pull request:

Change log entry:

Section: Bug fixes

In the Python Console, inserting a tab for indentation at the beginning of a non-empty input line and performing tab-completion in the middle of an input line are now supported.

…ss#11532)

 * Support indenting with tabs when editing a non-empty input line
 * Support tab-completion in the middle of an input line
@JulienCochuyt

Copy link
Copy Markdown
Contributor Author

@XLTechie, could you please check if the try-build of this PR meets your expectations?

 * Consider selection start rather than cursor position (different if selection is anchored at start)
 * Replace selection upon successful completion
@michaelDCurran michaelDCurran merged commit 561beeb into nvaccess:master Jan 21, 2021
@nvaccessAuto nvaccessAuto added this to the 2021.1 milestone Jan 21, 2021
@JulienCochuyt JulienCochuyt deleted the i11532-pythonConsoleTab branch January 21, 2021 08:24
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

Successfully merging this pull request may close these issues.

Tab behaves strangely when not being used for completion in Python Console

3 participants