Fixed bug that occurred when changing tabs with keybaord shortcuts. See notes in JanewayKeyEventDispatcher#dispatchKeyEvent().