fix: mouse navigation — redirect workspace back/forward to Files buttons, remove xinput monitor
- onNavigateBack/Forward now check for currentView === 'workspace' first and delegate to Files plugin's up/forward buttons (breadcrumb/Fwd nav) - Fall back to navigationStack for cross-view navigation - Removed mouse_monitor.go (xinput test-xi2) — causes phantom X windows, superseded by GTK-level vendor patch - Removed startMouseMonitor call from App.Startup
This commit is contained in:
@@ -216,10 +216,26 @@
|
||||
}
|
||||
|
||||
function onNavigateBack(e) {
|
||||
if (currentView === 'workspace') {
|
||||
const upBtn = document.querySelector('[data-files-action="up"]');
|
||||
if (upBtn) {
|
||||
upBtn.click();
|
||||
e?.preventDefault?.();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (navigateBack()) e?.preventDefault?.();
|
||||
}
|
||||
|
||||
function onNavigateForward(e) {
|
||||
if (currentView === 'workspace') {
|
||||
const fwdBtn = document.querySelector('[data-files-action="forward"]');
|
||||
if (fwdBtn) {
|
||||
fwdBtn.click();
|
||||
e?.preventDefault?.();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (navigateForward()) e?.preventDefault?.();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user