Skip to content

Commit

Permalink
remove conflict on Instagram default keyboard shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
HOAIAN2 committed Aug 13, 2023
1 parent 8e2c325 commit 278b047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ main(profileID)

## Keyboard shortcut

* Download: `D` `d`
* Download: `D`
* Close: `esc` `C` `c`
* Select all `S` `s`
* Keyboard shortcut should work if you don't focus on special HTML Elements like `input` `textarea` or any element with ```textbox``` role (ex: comment, search, ...)
Expand Down
2 changes: 1 addition & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function handleEvents() {
const DOWNLOAD_BUTTON = document.querySelector('.download-button')
const IGNORE_FOCUS_ELEMENTS = ['INPUT', 'TEXTAREA']
const ESC_EVENT_KEYS = ['Escape', 'C', 'c']
const DOWNLOAD_EVENT_KEYS = ['D', 'd']
const DOWNLOAD_EVENT_KEYS = ['D']
const SELECT_EVENT_KEYS = ['S', 's']
DOWNLOAD_BUTTON.addEventListener('click', handleDownload)
function setTheme() {
Expand Down

0 comments on commit 278b047

Please sign in to comment.