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

Input focus left in console window upon startup #363

Open
alankilborn opened this issue Dec 27, 2024 · 4 comments
Open

Input focus left in console window upon startup #363

alankilborn opened this issue Dec 27, 2024 · 4 comments
Labels

Comments

@alankilborn
Copy link

If Show Console is checkmarked when Notepad++ is exited, when Notepad++ is restarted, the user's input focus is at the console window's >>> prompt.

Wouldn't it be a better user experience if his input focus, i.e., blinking caret, is in the main N++ editing area, rather than the PS console?
I think so, so I'm requesting this.


Using Notepad++ 8.7.5.
Using Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)]
Using only plugins that ship with N++ and PythonScript plugin.


Workaround:

  • double tap on the Windows key on the keyboard, moves the input focus into the main editing window

See also:

@Ekopalypse
Copy link
Contributor

Does pressing the ESC key not work for you?

@alankilborn
Copy link
Author

Does pressing the ESC key not work for you?

ESC does work (I think that's a newer workaround than my double-tap-on-Windows key).
The point is, IMO input focus upon startup should not be left in the console window but rather in the editing window.

@alankilborn
Copy link
Author

Another workaround, inspired by @Ekopalypse mention of Esc key:

  • User places this code at end of (user) startup:
import SendKeys as sk
sk.SendKeys("{ESC}")

@Ekopalypse
Copy link
Contributor

Agreed, I think it's more likely that if you start Npp and want the console displayed at startup, you'd still want to start editing instead of invoking something from the command prompt.
I think this could be implemented if it is accepted as a feature request.

@chcg chcg added the Feature label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants