Skip to content

Commit

Permalink
Adds a call to activateWindow() to all the toolbar Triggers/Aliases…
Browse files Browse the repository at this point in the history
…/Etc buttons. Currently, they raise the window and show it, but don't activate it, meaning that keyboard presses still go to the main window.
  • Loading branch information
dicene committed Aug 16, 2019
1 parent 6b29b60 commit df88823
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mudlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,7 @@ void mudlet::show_trigger_dialog()
pEditor->slot_show_triggers();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_alias_dialog()
Expand All @@ -3101,6 +3102,7 @@ void mudlet::show_alias_dialog()
pEditor->slot_show_aliases();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_timer_dialog()
Expand All @@ -3116,6 +3118,7 @@ void mudlet::show_timer_dialog()
pEditor->slot_show_timers();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_script_dialog()
Expand All @@ -3131,6 +3134,7 @@ void mudlet::show_script_dialog()
pEditor->slot_show_scripts();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_key_dialog()
Expand All @@ -3146,6 +3150,7 @@ void mudlet::show_key_dialog()
pEditor->slot_show_keys();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_variable_dialog()
Expand All @@ -3161,6 +3166,7 @@ void mudlet::show_variable_dialog()
pEditor->slot_show_vars();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}

void mudlet::show_action_dialog()
Expand All @@ -3176,6 +3182,7 @@ void mudlet::show_action_dialog()
pEditor->slot_show_actions();
pEditor->raise();
pEditor->showNormal();
pEditor->activateWindow();
}


Expand Down

0 comments on commit df88823

Please sign in to comment.