Skip to content

Commit 135d6b8

Browse files
committed
Fixed navigator keybindings
1 parent dbbbff2 commit 135d6b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

keybindings.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Meta from 'gi://Meta';
33
import Shell from 'gi://Shell';
44

55
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
6+
import * as Config from 'resource://org/gnome/shell/misc/config.js';
67

78
import {
89
Settings, Utils, Tiling, Navigator,
@@ -365,7 +366,11 @@ export function byId(mutterId) {
365366
}
366367

367368
export function asKeyHandler(actionHandler) {
368-
return (display, mw, binding) => actionHandler(mw, Tiling.spaces.selectedSpace, { display, binding });
369+
if (Config.PACKAGE_VERSION.startsWith("48")) {
370+
return (display, mw, evt, binding) => actionHandler(mw, Tiling.spaces.selectedSpace, { display, binding });
371+
} else {
372+
return (display, mw, binding) => actionHandler(mw, Tiling.spaces.selectedSpace, { display, binding });
373+
}
369374
}
370375

371376
export function impliedOptions(options) {

0 commit comments

Comments
 (0)