bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-29 18:22:13 +03:00
parent 3833545c55
commit 2f56bf6191
3 changed files with 9 additions and 6 deletions

View File

@ -167,6 +167,7 @@ body {
.keyboard-shortcut {
text-decoration: none !important;
position: relative;
display: inline-block;
}
.keyboard-shortcut:after {
content: "";
@ -315,7 +316,7 @@ body {
/* make buttons a bit different in action browser... */
.browse-widget.browse-actions.show-keys .list .button {
background-color: rgba(0, 0, 0, 0.1);
background-color: rgba(0, 0, 0, 0.12);
}
@ -325,7 +326,7 @@ body {
background: rgba(0, 0, 0, 0.03);
}
.browse-widget.key-bindings .list .item .button {
background-color: rgba(0, 0, 0, 0.1);
background-color: rgba(0, 0, 0, 0.12);
}
.browse-widget.key-bindings .list>.drop-list .text:first-child {

View File

@ -210,6 +210,8 @@
padding-left: 10px;
padding-right: 10px;
box-sizing: border-box;
/*border: solid 1px rgba(255,255,255, 0.3);*/
}
.browse-widget .list .button:hover {
opacity: 0.9;

View File

@ -1951,13 +1951,11 @@ var BrowserPrototype = {
// text marker...
if(item_shortcut_marker){
var did_register = false
var _replace = function(){
// get the last group...
var key = [].slice.call(arguments).slice(-3)[0]
!item_shortcuts[key]
// NOTE: this is a side-effect...
&& (did_register = true)
&& that.keyboard.handler(
'ItemShortcuts',
key,
@ -1967,14 +1965,16 @@ var BrowserPrototype = {
txt = txt.replace(item_shortcut_marker, _replace)
var registered = []
p.filter('.text')
.each(function(_, e){
e = $(e)
e.html(e.html().replace(item_shortcut_marker,
function(){
did_register = false
var k = _replace.apply(this, arguments)
return !did_register ?
var mark = !!(registered.indexOf(k) < 0
&& registered.push(k))
return mark ?
`<span class="keyboard-shortcut">${k}</span>`
: k
}))