Modal detection through less-than-ideal jQuery
This commit is contained in:
@ -158,7 +158,7 @@ class Hotkeys extends React.Component {
|
||||
uiActions.dragEnd();
|
||||
prevent = true;
|
||||
if (allow_reporting) ReactGA.event({ category: 'Hotkey', action: key, label: 'Dragging' });
|
||||
} else if (modal) {
|
||||
} else if ($('body').hasClass('modal-open')) {
|
||||
window.history.back();
|
||||
prevent = true;
|
||||
if (allow_reporting) ReactGA.event({ category: 'Hotkey', action: key, label: 'Modal' });
|
||||
|
||||
Reference in New Issue
Block a user