diff --git a/basis/ui/gadgets/buttons/buttons.factor b/basis/ui/gadgets/buttons/buttons.factor index 352190c95f..494dc20c05 100644 --- a/basis/ui/gadgets/buttons/buttons.factor +++ b/basis/ui/gadgets/buttons/buttons.factor @@ -229,8 +229,8 @@ PRIVATE> : command-button-quot ( target command -- quot ) '[ _ _ invoke-command ] ; -: gesture>tooltip ( gesture -- str ) - [ gesture>string "Shortcut: " prepend ] [ "Shortcut Unassigned" ] if* ; +: gesture>tooltip ( gesture -- str/f ) + dup [ gesture>string "Shortcut: " prepend ] when ; : ( target gesture command -- button ) swapd [ command-name swap ] keep command-button-quot