diff --git a/src/declarativeimports/plasmacomponents3/ToolTip.qml b/src/declarativeimports/plasmacomponents3/ToolTip.qml index 9b24a32d4..04289cfbc 100644 --- a/src/declarativeimports/plasmacomponents3/ToolTip.qml +++ b/src/declarativeimports/plasmacomponents3/ToolTip.qml @@ -45,7 +45,9 @@ T.ToolTip { closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent contentItem: Label { - text: control.text + // Strip out ampersands right before non-whitespace characters, i.e. + // those used to determine the alt key shortcut + text: control.text.replace(/&(?=\S)/g, "") font: control.font color: PlasmaCore.ColorScope.textColor }