mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
parent
ec9134e14f
commit
ced4f75395
@ -43,7 +43,8 @@ class DatePicker extends React.Component {
|
||||
handleKeydown(e) {
|
||||
const { query, history } = this.props;
|
||||
|
||||
if (e.ctrlKey || e.metaKey || e.altKey || e.isComposing || e.keyCode === 229) return
|
||||
if (e.target.tagName === 'INPUT') return true;
|
||||
if (e.ctrlKey || e.metaKey || e.altKey || e.isComposing || e.keyCode === 229) return;
|
||||
|
||||
const newSearch = {
|
||||
period: false,
|
||||
|
@ -47,7 +47,8 @@ export default class SiteSwitcher extends React.Component {
|
||||
const { query, history, site } = this.props;
|
||||
const { sites } = this.state;
|
||||
|
||||
if (e.ctrlKey || e.metaKey || e.altKey || e.isComposing || e.keyCode === 229 || !sites) return
|
||||
if (e.target.tagName === 'INPUT') return true;
|
||||
if (e.ctrlKey || e.metaKey || e.altKey || e.isComposing || e.keyCode === 229 || !sites);
|
||||
|
||||
const siteNum = parseInt(e.key)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user