'Reimplements ShellBaseWidget method'

def contextMenuEvent(self, event):

    state = self.has_selected_text()
    self.copy_without_prompts_action.setEnabled(state)
    ShellBaseWidget.contextMenuEvent(self, event)
