show prompt responses in dialog
This commit is contained in:
@@ -58,6 +58,7 @@ async fn main() {
|
||||
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
|
||||
.invoke_handler(tauri::generate_handler![toggle_popup, prompt_llm])
|
||||
.setup(|app| {
|
||||
/* Auto-hide popup when focus is lost
|
||||
if let Some(window) = app.get_webview_window("popup") {
|
||||
let w = window.clone();
|
||||
window.on_window_event(move |event| {
|
||||
@@ -68,6 +69,8 @@ async fn main() {
|
||||
}
|
||||
})
|
||||
}
|
||||
*/
|
||||
// Global shortcut to pull up the popup
|
||||
let shortcut = Shortcut::new(Some(Modifiers::META), Code::Space);
|
||||
app.global_shortcut()
|
||||
.on_shortcut(shortcut, move |app, _shortcut, event| {
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
"label": "popup",
|
||||
"title": "AI Quick Action",
|
||||
"url": "/popup",
|
||||
"width": 600,
|
||||
"height": 260,
|
||||
"width": 800,
|
||||
"height": 400,
|
||||
"decorations": false,
|
||||
"transparent": true,
|
||||
"alwaysOnTop": true,
|
||||
|
||||
Reference in New Issue
Block a user