import QtQuick 2.0 import QtQuick.Controls 2.2 MenuItem { Keys.onReturnPressed: { triggered() } }