Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006455Dwarf FortressTechnical -- Input/Keybinding/Macrospublic2014-03-12 13:552014-12-07 15:37
Reporterlethosor 
Assigned Tolethosor 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionno change required 
PlatformWindowsOSOS Version
Product Version0.34.11 
Target VersionFixed in Version 
Summary0006455: Modifier keys are not cleared when using alt-tab to switch from DF to another application (on Windows)
DescriptionThere are numerous reports regarding this behavior (see http://www.reddit.com/r/dwarffortress/comments/1zxmxt/hit_m_to_open_military_screen_but_goes_to_dwarf/, [^] http://www.bay12forums.com/smf/index.php?topic=135487, [^] etc.), but I was unable to find any on the bug tracker. I initially assumed this was a bug in SDL, like 0006374, but I recently found a solution from another project using SDL that had this problem: https://github.com/sirikata/sirikata/commit/231fb1c8a723316d9b6c1ec6599a94269baa0324 [^] (it could take a bit of work to adapt to DF, but the main idea is that it clears the active modifier keys when the window's focus changes).
 
Steps To ReproduceSet a keybinding to use Alt (e.g. changing announcements to Alt-U), Alt-tab out of DF, switch back to DF, and press "u". The units menu should be displayed, but the announcements screen is displayed instead.
Additional InformationI don't actually have a Windows machine to test on, so I'm going by what others have reported. I have not tested on Linux yet, so I'm unaware if this occurs on any platforms other than Windows (definitely not on OS X, since it uses Command-tab instead and the Command key isn't recognized by DF as a modifier)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0030093)
nuget102 (reporter)
2014-09-10 15:32

I can confirm this bug, and I can also confirm it's relatively annoying. But it's not too big of a deal, just simply tap 'alt' after you go back to the game and you won't have any problems.
(0031185)
lethosor (manager)
2014-11-25 16:23
edited on: 2014-11-25 16:23

Discussions in various threads imply that this is a utility-related problem. Has anyone been able to reproduce this without any utilities?

(0031290)
lethosor (manager)
2014-12-07 15:37

According to discussion at http://www.bay12forums.com/smf/index.php?topic=139553.msg5860257#msg5860257, [^] this is a DFHack problem.

- Issue History
Date Modified Username Field Change
2014-03-12 13:55 lethosor New Issue
2014-09-10 15:32 nuget102 Note Added: 0030093
2014-09-10 18:14 lethosor Summary Modifier keys are not cleared when using alt-tab to switch from DF to another application (Windows) => Modifier keys are not cleared when using alt-tab to switch from DF to another application (on Windows)
2014-11-25 16:23 lethosor Note Added: 0031185
2014-11-25 16:23 lethosor Assigned To => lethosor
2014-11-25 16:23 lethosor Status new => needs feedback
2014-11-25 16:23 lethosor Note Edited: 0031185 View Revisions
2014-12-07 15:37 lethosor Note Added: 0031290
2014-12-07 15:37 lethosor Status needs feedback => assigned
2014-12-07 15:37 lethosor Status assigned => resolved
2014-12-07 15:37 lethosor Resolution open => no change required


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker