mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
Ignore arrow keys when modifier keys are pressed (#371)
This commit is contained in:
parent
d8c05406d5
commit
8e9459ba99
@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
### Fixed
|
||||
- Do not error when activating an already activated account plausible/analytics#370
|
||||
- Ignore arrow keys when modifier keys are pressed plausible/analytics#363
|
||||
|
||||
### Security
|
||||
- Do not run the plausible Docker container as root plausible/analytics#362
|
||||
|
@ -42,6 +42,8 @@ class DatePicker extends React.Component {
|
||||
handleKeyup(e) {
|
||||
const {query, history} = this.props
|
||||
|
||||
if (e.ctrlKey || e.ctrlKey || e.altKey) return
|
||||
|
||||
if (e.key === 'ArrowLeft') {
|
||||
if (query.period === 'day') {
|
||||
const prevDate = formatISO(shiftDays(query.date, -1))
|
||||
|
Loading…
Reference in New Issue
Block a user