Merge pull request #7168 from KDSBrowne/2.2-restrict-spacebar-shortcut
Restrict when spacebar shortcut is activated
This commit is contained in:
commit
3364d879d3
@ -223,9 +223,9 @@ class WhiteboardToolbar extends Component {
|
||||
panOn(event) {
|
||||
const { annotationSelected } = this.state;
|
||||
const { target, which } = event;
|
||||
const isInputArea = target.nodeName === 'TEXTAREA' || target.nodeName === 'INPUT';
|
||||
const isBody = target.nodeName === 'BODY';
|
||||
|
||||
if (annotationSelected.value === 'hand' || isInputArea) return;
|
||||
if (annotationSelected.value === 'hand' || !isBody) return;
|
||||
|
||||
const { annotations } = this.props;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user