{
                if (event.character == '\r' || event.character == '\n')
                {
                  modify(tableItem, index, text);
                  setEditor(null);
                  text.dispose();
                }
                else if (event.character == '\033')
                {
                  setEditor(null);
                  text.dispose();
                }
              }