From 1a25473f067aa63fee83bb56577ef6bbcaee8977 Mon Sep 17 00:00:00 2001 From: Arthur <78031901+Arthur7770@users.noreply.github.com> Date: Tue, 13 Apr 2021 15:58:43 +0200 Subject: [PATCH] Test --- src/lsystem/screen/main/Listener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsystem/screen/main/Listener.java b/src/lsystem/screen/main/Listener.java index 7a391fe..d10f731 100644 --- a/src/lsystem/screen/main/Listener.java +++ b/src/lsystem/screen/main/Listener.java @@ -151,7 +151,7 @@ public class Listener implements ActionListener, KeyListener, MouseWheelListener if(nbAxioms==0 && ke.getKeyCode() != KeyEvent.VK_BACK_SPACE) tab.changeList(String.valueOf(ke.getKeyChar()), tab.getTextArea(i),nbAxioms); - if(ke.getKeyChar() == '\b'){ + if(ke.getKeyCode() == KeyEvent.VK_BACK_SPACE){ String str = tab.getTextArea(i).getText(); if(str.length()>10) { if (!(str.endsWith(";\n") || str.endsWith(";"))){