mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
When redoing changedContent values, no longer consider if these keys are being pressed: Escape (27), Caps Lock (20), Shift, CTRL, Alt, Pause/Break (16-19), Left, Up, Right, Down (37-40), Num Lock, Scroll Lock (144-145), Insert, Delete (45,46) <<-- mistake, Page Up, Page Down, End, Home (33-36), Left Win Key, Right Win Key (91-92), F1-F12 (112-123) This is because CM's changed event will not be triggered with these keys and I'm not calling onkeypress anymore Also, rather than now just setting and ending up being stuck at 1 (ie, changed), we're now detecting if we have at least 1 undo level, if so set to 1, otherwise 0 (This means you can make changes and undo back to the start and it doesn't count as a change) Because this is being handled on changedContent array, no longer need to consider undo level size when figuring out close button BG colour openFileMDTs were not being shuffled along when closing tabs but are now Fixed issue with string replacing closeTabButtonX() - brackets not needed