Track modifier state in the main loops

Really fixes #291
This commit is contained in:
2023-01-13 19:55:24 -05:00
parent 6e238881ae
commit e0418c685a
3 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "dialogxml/dialogs/strchoice.hpp"
#include "fileio/fileio.hpp"
#include "pc.menus.hpp"
#include "tools/keymods.hpp"
#include "tools/winutil.hpp"
#include "tools/cursors.hpp"
#include "fileio/resmgr/res_dialog.hpp"
@@ -190,6 +191,9 @@ void handle_events() {
void handle_one_event (const sf::Event& event) {
// If it's just a modifier key, update the state
if(kb.handleModifier(event)) return;
// Check if the menubar wants to handle this event.
if(menuBarProcessEvent(event)) return;