This PR fixes crashes regarding navigation attempts through an empty chart list.
Pressing any arrow key while inside an empty charts list would result in a division by zero error (for up and down arrows) or an index error (for the right arrow).
This PR adds a check that checks for an empty chart in the input handler.
This PR fixes crashes regarding navigation attempts through an empty chart list.
Pressing any arrow key while inside an empty charts list would result in a division by zero error (for up and down arrows) or an index error (for the right arrow).
This PR adds a check that checks for an empty chart in the input handler.