Skip to content

Commit f62a99f

Browse files
author
Xiaoxiang Cao
committedMar 29, 2022
Fix syl20bnr#15306. Reflect eaf layer keybinding logic to upstream changes.
- Replace outdated eaf API call with most recent ones - Tested with eaf-browser on my machine - Both (kbd "SPC") and (kbd ",") works fine in eaf-browser
1 parent c2a9aae commit f62a99f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎layers/+tools/eaf/packages.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
(pcase eaf--buffer-app-name
225225
((or
226226
(and "browser"
227-
(guard (not (string= (eaf-call-sync "call_function" eaf--buffer-id "is_focus") "True"))))
227+
(guard (not (eaf-call-sync "execute_function" eaf--buffer-id "is_focus"))))
228228
"image-viewer"
229229
"pdf-viewer")
230230
(kbd eaf-evil-leader-key))
@@ -245,6 +245,6 @@
245245
(define-key key-translation-map (kbd ",")
246246
(lambda (prompt)
247247
(if (derived-mode-p 'eaf-mode)
248-
(if (string= (eaf-call-sync "call_function" eaf--buffer-id "is_focus") "True")
248+
(if (eaf-call-sync "execute_function" eaf--buffer-id "is_focus")
249249
(kbd ",")
250250
(kbd "C-,"))))))))

0 commit comments

Comments
 (0)
Please sign in to comment.