Skip to content

Commit

Permalink
v6
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Aug 11, 2024
1 parent 411dc62 commit c6838da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/hotkeys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { event } from 'jquery';
import { isAppInNativeFullscreenMode } from './fullscreen';

export class Hotkeys {
constructor(ui) {
Expand Down Expand Up @@ -103,6 +104,10 @@ export class Hotkeys {
const isAbilityActive =
this.ui.activeAbility && this.ui.$scoreboard.hasClass('hide') && !this.ui.chat.isOpen;

if (isAppInNativeFullscreenMode()) {
return;
}

if (isAbilityActive) {
/* Check to see if dash view or chat are open first before
* canceling the active ability when using Esc hotkey
Expand Down

0 comments on commit c6838da

Please sign in to comment.