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:
parent
d644c5bb79
commit
b4e66c9779
|
|
@ -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?.();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ func (a *App) ensureWorkbench() *coreworkbench.Router {
|
|||
func (a *App) Startup(ctx context.Context) {
|
||||
a.ctx = ctx
|
||||
log.Printf("[api] App.Startup: initialized with %d plugins", len(a.plugins))
|
||||
startMouseMonitor(ctx)
|
||||
}
|
||||
|
||||
func (a *App) findPlugin(pluginID string) (*plugin.Plugin, error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue