Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Problem with polish national characters in the game

1773846068

Edited 1773904732
Hi,  I'm unable to write any polish national characters (those are written by pressing Alt+l = "ł" or substitute l with any of (a,e,o,s,c,n,z,x) in the game dialogs such as chat/bio edition/search of assets. I debugged it and the problem is that the site is intercepting "Alt" presses to prevent "default" behaviour. This is the only site that I have ever problem with polish characters.  This is output from my keylogger that I added in the devtools: " const Oe = Z => {                     Z.altKey && Z.preventDefault(),                     (0,  ss.Ek)("alt", Z.altKey),                     (0,  ss.Ek)("ctrl", Z.ctrlKey || Z.metaKey),                     (0,  ss.Ek)("shift", Z.shiftKey) }" keydown - key: Alt | code: AltRight  MacOS 15.7.4 (24G517) with polish keyboard as input source. My intuition is that other users with macOS and special characters created with "alt" will have some problem. 
1773904874

Edited 1773904888
Blow I attach Claude Code analysis of the issue and suggestion how to fix it. javascript Z => { Z . altKey && Z . preventDefault ( ) , // if Alt is held, block default browser behavior (= blocks ł, ó, etc.) ( 0 , ss . Ek ) ( "alt" , Z . altKey ) , // update global state: is Alt pressed? ( 0 , ss . Ek ) ( "ctrl" , Z . ctrlKey || Z . metaKey ) , // same for Ctrl ( 0 , ss . Ek ) ( "shift" , Z . shiftKey ) // same for Shift } This is a modifier key tracker – Roll20 uses it to know in real time whether Alt/Ctrl/Shift are held down (e.g. for precise token movement on the map). The bug is that preventDefault() is called unconditionally – it should first check if the current focus is on a text field, like: javascript if ( Z . altKey && ! isTextInput ( document . activeElement ) ) { Z . preventDefault ( ) ; } But Roll20 didn't do that, so it breaks Polish (and other non-English) keyboards globally.
Thats annoying, have the same problem on MacOS