Fork me on GitHub
#humbleui
<
2023-03-24
>
Quest21:03:26

Jotting down thoughts on bug/expected behavior of passing :keymap to a text-field -- When keyevents show up for any edit characters (like :a, :enter, etc), the edit event still occurs even if your :keymap callback returned a falsey value. So there's no way to prevent an :a keyevent from adding an a to the text-input's string Based on the behavior of using component on-focused-key, I'd expect keymap callback should run first, and returning a falsey value should prevent TextInput from running its own edit handler for that character. If this sounds right then I might PR a fix into main so I can delete a fiddly (future) workaround I'm using

jeremys23:03:27

Hi, I am having a little bit of an issue at the moment on linux. I get the error /tmp/skija_0.109.1_x64/libskija.so: libGL.so.1: cannot open shared object file: No such file or directory. The problem comes from using homebrew. If I brew unlink openjkd everything works. Does somebody know if there is a way to use the jdk installed from homebrew without hitting that error? Cheers

Niki17:03:04

Weird — are you on x64 machine?

jeremys12:03:32

I got a AMD Ryzen 5 1600X Six-Core Processor on this machine, it's x86_64 I believe. Yeah it's weird, the apt package used when I brew unlink openjdk finds shared libs just fine, it's just the brew installed one that doesn't. Maybe I shouldn't use homebrew on linux, but it's damn convenient to install clojure tools, bb, lsps and what have you.

jeremys12:03:23

Also, it maybe unrelated but, I installed rust using brew to try out tauri. When building, rustc couldn't find shared libs also. It turns out brew installs it's own version of pkg-config which doesn't know where to find shared libs by default. Or rather it can only find libs installed with brew. Here is the https://tauri.app/v1/guides/faq. You need to set PKG_CONFIG_PATH to the right directories for it to work. I was wondering if it was something similar happening here and if someone already had that issue and found a work around. Maybe I need to set an environment variable, or I need to find a brew formula that installs libGL.so.1...