diff --git a/CHANGELOG.md b/CHANGELOG.md index aa0a28b16..7c90d4188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/assets/js/dashboard/datepicker.js b/assets/js/dashboard/datepicker.js index 29c0297a6..edd1c6129 100644 --- a/assets/js/dashboard/datepicker.js +++ b/assets/js/dashboard/datepicker.js @@ -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))