Skip to content

Commit ceff140

Browse files
committed
allows dot numpad as decimal separator for spanish
1 parent 5b9b2a1 commit ceff140

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/util/text/FrenchKeypadSupport.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
77
import org.eclipse.swt.events.KeyEvent;
88
import org.eclipse.swt.widgets.Text;
99

10+
import name.abuchen.portfolio.util.AdditionalLocales;
1011
import name.abuchen.portfolio.util.TextUtil;
1112

1213
public class FrenchKeypadSupport
1314
{
1415
private static final boolean IS_FRENCH = Locale.getDefault().getLanguage().equals(Locale.FRENCH.getLanguage());
16+
private static final boolean IS_SPANISH = Locale.getDefault().getLanguage()
17+
.equals(AdditionalLocales.SPAIN.getLanguage());
1518

1619
private FrenchKeypadSupport()
1720
{
1821
}
1922

2023
public static void configure(Text text)
2124
{
22-
if (IS_FRENCH)
25+
if (IS_FRENCH || IS_SPANISH)
2326
{
2427
text.addKeyListener(new KeyAdapter()
2528
{

0 commit comments

Comments
 (0)