Skip to content

Commit

Permalink
disable tab navigation during events (fixes doublespeakgames#403) dep…
Browse files Browse the repository at this point in the history
…ends on @AndySky21's branch world-to-path
  • Loading branch information
wmassingham authored and groteworld committed Jun 27, 2015
1 parent 08bd1c7 commit f94cfe2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ var Events = {
if(event) {
Engine.event('game event', 'event');
Engine.keyLock = true;
Engine.tabNavigation = false;
Events.eventStack.unshift(event);
event.eventPanel = $('<div>').attr('id', 'event').addClass('eventPanel').css('opacity', '0');
if(options != null && options.width != null) {
Expand Down Expand Up @@ -870,6 +871,7 @@ var Events = {
Events.eventStack.shift();
Engine.log(Events.eventStack.length + ' events remaining');
Engine.keyLock = false;
Engine.tabNavigation = true;
if (Events.BLINK_INTERVAL) {
Events.stopTitleBlink();
}
Expand Down

0 comments on commit f94cfe2

Please sign in to comment.