mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix tooltip command display when command has no keybinding
This commit is contained in:
@@ -36,9 +36,10 @@ class TooltipManager
|
||||
|
||||
if keyBindingCommand?
|
||||
bindings = atom.keymaps.findKeyBindings(command: keyBindingCommand, target: keyBindingTarget)
|
||||
if options.title?
|
||||
keystroke = getKeystroke(bindings)
|
||||
if options.title? and keystroke?
|
||||
options.title += " " + getKeystroke(bindings)
|
||||
else
|
||||
else if keystroke?
|
||||
options.title = getKeystroke(bindings)
|
||||
|
||||
$target = $(target)
|
||||
|
||||
Reference in New Issue
Block a user