Qopy/src-tauri
PandaDEV fbd159c68b Fix focus issue when opening Qopy
Fixes #10

Implement platform-specific focus management to prevent the underlying window from losing focus when the shortcut is pressed.

* **src-tauri/src/api/hotkeys.rs**
  - Add platform-specific modules for Windows, macOS, and Linux to manage focus between windows.
  - Modify the `setup` function to use platform-specific APIs to manage focus between windows.
  - Replace `window.set_focus()` with `platform::manage_focus(&window)`.

* **src-tauri/src/api/tray.rs**
  - Add platform-specific modules for Windows, macOS, and Linux to manage focus between windows when the tray menu is used.
  - Modify the `setup` function to use platform-specific APIs to manage focus between windows.
  - Replace `window_clone_for_tray.set_focus()` with `platform::manage_focus(&window_clone_for_tray)`.

* **app.vue**
  - Add `manageFocus` function to handle platform-specific focus management.
  - Call `manageFocus` function when the `change_keybind` event is triggered.

* **src-tauri/src/main.rs**
  - Remove logic to hide the window when it loses focus.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/0PandaDEV/Qopy/issues/10?shareId=XXXX-XXXX-XXXX-XXXX).
2024-11-15 12:29:36 +10:00
..
capabilities fixed display of images 2024-08-27 15:38:01 +10:00
icons added ability to set custom hotkey 2024-09-02 10:37:58 +10:00
src Fix focus issue when opening Qopy 2024-11-15 12:29:36 +10:00
.gitignore inital 2024-07-04 23:55:00 +02:00
build.rs inital 2024-07-04 23:55:00 +02:00
Cargo.lock update: to tauri 2.0 stable 2024-10-07 00:33:21 +10:00
Cargo.toml update: to tauri 2.0 stable 2024-10-07 00:33:21 +10:00
tauri.conf.json always on top 2024-08-30 10:58:46 +10:00