Moved the editing actions implemented in keyPressEvent into webActionTriggered.