mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 18:30: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) {"
|
+ "if (area.value.indexOf('\\\\') >= 0) {"
|
||||||
+ " var start = area.selectionStart;"
|
+ " var start = area.selectionStart;"
|
||||||
+ " var end = area.selectionEnd;"
|
+ " var end = area.selectionEnd;"
|
||||||
+ " area.value = area.value.replace('\\\\', 'λ');"
|
+ " area.value = area.value.replaceAll('\\\\', 'λ');"
|
||||||
+ " area.selectionStart = start;"
|
+ " area.selectionStart = start;"
|
||||||
+ " area.selectionEnd = end;"
|
+ " area.selectionEnd = end;"
|
||||||
+ "}});");
|
+ "}});");
|
||||||
|
Loading…
Reference in New Issue
Block a user