Colby-CPU-Sim / CPUSim

GNU General Public License v3.0
52 stars 18 forks source link

Editing a new table cell after entering an incorrect value does not trigger an error #83

Open moirage opened 7 years ago

moirage commented 7 years ago

Edit a register and give it an illegal value. Then, instead of pressing Enter, click on another cell in the same table. The cell does not turn red and instead the old value of the register is restored. If you click anywhere else in the window, the cell with the error turns red and latches onto the focus, as we want to happen. This is a property of TableCells. See its startEdit(), commitEdit(), and cancelEdit() methods.