minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-12 19:01:40 +03:00
parent 16bed7b426
commit 7a4ed670ee
4 changed files with 38 additions and 3 deletions

View File

@ -1095,6 +1095,19 @@ stretching in width... */
font-style: italic;
}
.overlay-info .gid:before,
.overlay-info .gid:after {
opacity: 0.8;
}
.overlay-info .gid:before {
content: "(";
}
.overlay-info .gid:after {
content: ")";
}
/* XXX REUSE: this is the same as selected/bookmarked image markers... */
.overlay-info .marked,
.overlay-info .marked:after,

View File

@ -252,7 +252,13 @@ module.GLOBAL_KEYBOARD = {
shift: 'openInExtenalEditor: 1 -- Open in alternative editor',
alt: 'listExtenalEditors',
},
C: 'browseActions: "/Crop/" -- Show crop menu',
C: {
default: 'browseActions: "/Crop/" -- Show crop menu',
// do the default copy thing...
// NOTE: this stops the default: handler from getting the ctrl:
// key case...
ctrl: '',
},
O: 'browsePath',
S: {
default: 'slideshowDialog',

View File

@ -210,8 +210,15 @@ var StatusBarActions = actions.Actions({
: type == 'path'? 'Image filename/path'
: '')
.append($('<span class="shown">'))
// XXX would be nice to make triple click select this as unit...
.append($('<span class="hidden">'))
.append($('<span class="hidden">')
// select the text...
// XXX should this also copy???
.click(function(){
window.getSelection().removeAllRanges()
var range = document.createRange()
range.selectNodeContents(this)
window.getSelection().addRange(range)
}))
} else {
var type = item.attr('type')

View File

@ -32,6 +32,15 @@ Object.get = function(obj, name, dfl){
Array.prototype.compact = function(){
return this.filter(function(){ return true })
}
/*
Array.prototype.compact = function(){
var res = []
for(var i in res){
res.push(this[i])
}
return res
}
*/
// return an array with duplicate elements removed...