tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-05 07:38:56 +03:00
parent 5517204b3b
commit 9ef35d3ea1
2 changed files with 36 additions and 9 deletions

View File

@ -317,17 +317,31 @@ body {
background: rgba(0, 0, 0, 0.7);
}
.browse-widget.key-bindings .list>.ignore .text:first-child {
font-weight: bold;
font-style: italic;
}
.browse-widget.key-bindings .list>.ignore .text:not(:first-child) {
display: inline;
position: relative;
float: right;
margin-left: 1em;
margin-right: 1em;
opacity: 0.8;
font-style: italic;
}
.browse-widget.key-bindings .list>div:not(.selected):not(.mode):nth-child(even) {
background: rgba(0, 0, 0, 0.03);
}
.browse-widget.key-bindings .list>.key .button {
background-color: rgba(0, 0, 0, 0.1);
}
.browse-widget.key-bindings .list>.key:after,
.browse-widget.key-bindings .list>.key .text:not(:first-child) {
display: inline;
position: relative;
content: attr(keys);
float: right;
margin-left: 1em;

View File

@ -615,8 +615,8 @@ var KeyboardActions = actions.Actions({
// ---
// <list of keys>
// new
//
// XXX do not hide modes on search...
// XXX add view mode (read only)...
// XXX BUG sections with doc do not show up in title...
browseKeyboardBindings: ['Interface/Keyboard bindings editor (EXPERIMENTAL)...',
widgets.makeUIDialog(function(path){
var actions = this
@ -662,6 +662,16 @@ var KeyboardActions = actions.Actions({
//.addClass('mode not-searchable')
.addClass('mode not-filterd-out')
// unpropagated keys...
make(['Unpropagated keys:',
// NOTE: this blank is so as to avoid
// sticking the action and keys
// together in path...
' ',
'$BUTTONS',
(actions.keyboard[mode].ignore || []).join(' / ')])
.addClass('ignore')
// bindings...
Object.keys(keys[mode])
.forEach(function(action){
@ -671,9 +681,8 @@ var KeyboardActions = actions.Actions({
// thus we are not using
// the keys attr as in
// .browseActions(..)
&& make([action, '$BUTTONS']
.concat(keys[mode][action]
.join(' / ')))
&& make([action, ' ', '$BUTTONS']
.concat(keys[mode][action].join(' / ')))
.addClass('key')
})
@ -697,10 +706,14 @@ var KeyboardActions = actions.Actions({
cls: 'key-bindings no-item-numbers',
itemButtons: [
// NOTE: ordering within one section is purely
// aesthetic and has no function...
// XXX do wee actually need ordering???
// XXX up
['&#9206;', function(){}],
//['&#9206;', function(){}],
// XXX down
['&#9207;', function(){}],
//['&#9207;', function(){}],
// XXX edit -- launch the editor...
['&ctdot;', function(){}],
//['edit', function(){}],