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

Focus does not return to main window if clicking on userWindow #1769

Closed
PapaGuacamole opened this issue Jun 13, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@PapaGuacamole
Copy link
Contributor

commented Jun 13, 2018

Brief summary of issue / Description of requested feature:

I use userWindows to display hyperlinked lists of areas and if I click on said hyperlink, code executes to autowalk to the area. Once in the area, I have to click on the main window again to give it back focus before I can use either keybinds or type in the command bar.

Steps to reproduce the issue / Reasons for adding feature:

  1. Create a userWindow
  2. Click on said user window
  3. Try a hotkey

Error output / Expected result of feature

Nothing happens until you give focus back to main window.

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

One possible solution might be to add a giveFocus() function, so people can choose whether to return focus to the main window

@SlySven SlySven added high bug labels Jun 21, 2018

SlySven added a commit to SlySven/Mudlet that referenced this issue Jul 4, 2018

BugFix: restore focus to main TConsole after mouse click in other ones
This is less than perfect because it cannot totally identify what the
particular TConsole instance is associated with - to help me to debug it
I needed to add some extra code that assigns values to the
(QString) TConsole::mConsoleName to cover the miniConsoles, buffers, user
windows and Editor error window.

As well as attempting to close issue Mudlet#1783 I think the addition of the
setFocusPolicy(Qt::NoFocus) to the mudlet::openWindow(...) method will also
cure Mudlet#1769.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven

This comment has been minimized.

Copy link
Member

commented Jul 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.