leap: stop immediate propagation on invocation

This commit is contained in:
Tyler Brown Cifu Shuster 2020-08-15 15:01:11 -07:00
parent 6848dad6f8
commit 54a7acbfc2
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export default class LocalApi extends BaseApi<StoreState> {
});
}
setOmnibox() {
setOmnibox() {
this.store.handleEvent({
data: {
local: {

View File

@ -59,6 +59,7 @@ class App extends React.Component {
this.api.local.getBaseHash();
Mousetrap.bindGlobal(['command+/', 'ctrl+/'], (e) => {
e.preventDefault();
e.stopImmediatePropagation();
this.api.local.setOmnibox();
});
this.setFavicon();