Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Prevent default browser action (if interceptible) for custom hotkeys
Browse files Browse the repository at this point in the history
Issue #1365
  • Loading branch information
pablosichert committed Nov 22, 2017
1 parent 569d4af commit 2d7a23a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/shortcuts/TableContextShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ import { Shortcut } from '../Shortcuts';

export default class TableContextShortcuts extends Component {
handlers = {
TOGGLE_EXPAND: () => {
TOGGLE_EXPAND: event => {
event.preventDefault();

this.props.handleToggleExpand();
},
TOGGLE_QUICK_INPUT: () => {
TOGGLE_QUICK_INPUT: event => {
event.preventDefault();

this.props.handleToggleQuickInput();
}
};
Expand Down

0 comments on commit 2d7a23a

Please sign in to comment.