mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-09 10:50:42 +00:00
Replace every backslash after user finished typing
This commit is contained in:
parent
19a2921cbc
commit
cde13db5b1
@ -67,7 +67,7 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
||||
+ "if (area.value.indexOf('\\\\') >= 0) {"
|
||||
+ " var start = area.selectionStart;"
|
||||
+ " var end = area.selectionEnd;"
|
||||
+ " area.value = area.value.replace('\\\\', 'λ');"
|
||||
+ " area.value = area.value.replaceAll('\\\\', 'λ');"
|
||||
+ " area.selectionStart = start;"
|
||||
+ " area.selectionEnd = end;"
|
||||
+ "}});");
|
||||
|
Loading…
Reference in New Issue
Block a user