diff --git a/doc/xschem_man/commands.html b/doc/xschem_man/commands.html index cabe7803..cb71f037 100644 --- a/doc/xschem_man/commands.html +++ b/doc/xschem_man/commands.html @@ -133,6 +133,7 @@ shift 'F' Flip alt 'f' Flip objects around their anchor points ctrl 'f' Find/select by substring or regexp - 'f' Full zoom +shift+ctrl 'F' Zoom full selected elements shift 'G' Double snap factor - 'g' Half snap factor ctrl 'g' Set snap factor diff --git a/src/callback.c b/src/callback.c index ac0449a3..27c557ca 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2083,16 +2083,20 @@ int callback(const char *winpath, int event, int mx, int my, KeySym key, tcleval("property_search"); break; } + if(key=='F' && state == (ShiftMask | ControlMask) ) /* full zoom selection */ + { + if(xctx->ui_state == SELECTION) { + zoom_full(1, 1, 3, 0.97); + } + break; + } if(key=='f' && state == 0 ) /* full zoom */ { if(waves_selected(event, key, state, button)) { waves_callback(event, mx, my, key, button, aux, state); break; } - if(xctx->ui_state == SELECTION) - zoom_full(1, 1, 3, 0.97); - else - zoom_full(1, 0, 1, 0.97); + zoom_full(1, 0, 1, 0.97); break; } if((key=='z' && state==ControlMask)) /* zoom out */ diff --git a/src/keys.help b/src/keys.help index 7647107a..f60e6da8 100644 --- a/src/keys.help +++ b/src/keys.help @@ -92,6 +92,7 @@ shift 'F' Flip alt 'f' Flip objects around their anchor points ctrl 'f' Find/select by substring or regexp - 'f' Full zoom +shift+ctrl 'F' Zoom full selected elements shift 'G' Double snap factor - 'g' Half snap factor ctrl 'g' Set snap factor