Fix editor canvas admin bug found by TR
The `grab-caret` method's argument is supposed to be optional according to the documentation.
This commit is contained in:
parent
7eb1a4ba42
commit
14b133296f
|
@ -1192,7 +1192,7 @@
|
|||
(send canvas is-focus-on?))
|
||||
(list (send canvas scroll-to localx localy w h refresh? bias))))))
|
||||
|
||||
(def/override (grab-caret [(symbol-in immediate display global) dist])
|
||||
(def/override (grab-caret [(symbol-in immediate display global) [dist 'global]])
|
||||
(when canvas
|
||||
(when (eq? dist 'global)
|
||||
(send canvas set-focus))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user