Compare commits
2 Commits
00e19ccf67
...
e56bac2c2b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e56bac2c2b | ||
|
|
d9593091a5 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "twitch-vod-manager",
|
"name": "twitch-vod-manager",
|
||||||
"version": "4.6.74",
|
"version": "4.6.75",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "twitch-vod-manager",
|
"name": "twitch-vod-manager",
|
||||||
"version": "4.6.74",
|
"version": "4.6.75",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "twitch-vod-manager",
|
"name": "twitch-vod-manager",
|
||||||
"version": "4.6.74",
|
"version": "4.6.75",
|
||||||
"description": "Twitch VOD Manager - Download Twitch VODs easily",
|
"description": "Twitch VOD Manager - Download Twitch VODs easily",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"author": "xRangerDE",
|
"author": "xRangerDE",
|
||||||
|
|||||||
@ -236,14 +236,24 @@ async function init(): Promise<void> {
|
|||||||
|
|
||||||
// Ctrl+F (or Cmd+F): focus the VOD filter — only when on the VODs tab.
|
// Ctrl+F (or Cmd+F): focus the VOD filter — only when on the VODs tab.
|
||||||
// Browser's default Ctrl+F is suppressed because Electron's renderer
|
// Browser's default Ctrl+F is suppressed because Electron's renderer
|
||||||
// doesn't have a native find bar anyway.
|
// doesn't have a native find bar anyway. Route the shortcut to the
|
||||||
|
// active tab's search/filter input so the user lands in a useful
|
||||||
|
// place regardless of which tab they happen to be on.
|
||||||
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && (e.key === 'f' || e.key === 'F')) {
|
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && (e.key === 'f' || e.key === 'F')) {
|
||||||
const onVodsTab = document.getElementById('vodsTab')?.classList.contains('active');
|
if (document.getElementById('vodsTab')?.classList.contains('active')) {
|
||||||
if (onVodsTab) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
focusVodFilter();
|
focusVodFilter();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (document.getElementById('archiveTab')?.classList.contains('active')) {
|
||||||
|
const archiveInput = document.getElementById('archiveSearchQuery') as HTMLInputElement | null;
|
||||||
|
if (archiveInput) {
|
||||||
|
e.preventDefault();
|
||||||
|
archiveInput.focus();
|
||||||
|
archiveInput.select();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip rest if user is typing in an input field
|
// Skip rest if user is typing in an input field
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user