Add help text to the tabs of the keyeditor. #22
This commit is contained in:
@@ -51,7 +51,11 @@
|
|||||||
<div class="popover-title menu-tabs">
|
<div class="popover-title menu-tabs">
|
||||||
<ul class="nav nav-tabs popover-menu">
|
<ul class="nav nav-tabs popover-menu">
|
||||||
{{#each buttons}}
|
{{#each buttons}}
|
||||||
<li role="presentation"><a href="#" class="menu-tabs--item" data-content="{{content}}"><i class="fa {{icon}}"></i> {{title}}</a></li>
|
<li role="presentation">
|
||||||
|
<a href="#" class="menu-tabs--item" title="{{titleHelp}}" data-content="{{content}}">
|
||||||
|
<i class="fa {{icon}}"></i> {{title}}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -230,36 +230,42 @@ $(function() {
|
|||||||
type: 'primary',
|
type: 'primary',
|
||||||
icon: 'fa-keyboard-o',
|
icon: 'fa-keyboard-o',
|
||||||
title: 'Keypress',
|
title: 'Keypress',
|
||||||
|
titleHelp: 'Send a scancode with optional modifiers to the host',
|
||||||
content: 'keypress'
|
content: 'keypress'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'default',
|
type: 'default',
|
||||||
icon: 'fa-clone', // The icon for the tab will be a layer icon in svg. But for the mockup it was easier to just use something similar from fontawesome.
|
icon: 'fa-clone', // The icon for the tab will be a layer icon in svg. But for the mockup it was easier to just use something similar from fontawesome.
|
||||||
title: 'Layer',
|
title: 'Layer',
|
||||||
|
titleHelp: 'Activate or toggle the layers',
|
||||||
content: 'layer'
|
content: 'layer'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'default',
|
type: 'default',
|
||||||
icon: 'fa-mouse-pointer',
|
icon: 'fa-mouse-pointer',
|
||||||
title: 'Mouse',
|
title: 'Mouse',
|
||||||
|
titleHelp: 'Set up mouse movement, clicking, and scrolling',
|
||||||
content: 'mouse'
|
content: 'mouse'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'default',
|
type: 'default',
|
||||||
icon: 'fa-play',
|
icon: 'fa-play',
|
||||||
title: 'Macro',
|
title: 'Macro',
|
||||||
|
titleHelp: 'Play a macro',
|
||||||
content: 'macro'
|
content: 'macro'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'default',
|
type: 'default',
|
||||||
icon: 'fa-keyboard-o',
|
icon: 'fa-keyboard-o',
|
||||||
title: 'Keymap',
|
title: 'Keymap',
|
||||||
|
titleHelp: 'Switch to an other keymap',
|
||||||
content: 'switchKeymap'
|
content: 'switchKeymap'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'default',
|
type: 'default',
|
||||||
icon: 'fa-ban',
|
icon: 'fa-ban',
|
||||||
title: 'None',
|
title: 'None',
|
||||||
|
titleHelp: 'Do nothing when this key is pressed',
|
||||||
content: 'none'
|
content: 'none'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user