Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Ctrl + Shift + Tab

2012-11-05
2013-04-23
  • André Saunite
    André Saunite
    2012-11-05

    Hi all,

    I loved the new Ctrl + Tab shortcut to switch tabs in the new 4.4.1 version, but I still missed the Ctrl + Shift + Tab shortcut to go the previous tab, so I did a small change to add that, and I am posting it here in case someone else needs it.

    To apply the patch, save the file below as PACMain.pm.ctrl+shift+tab.patched and run:

    # patch /opt/pac/lib/PACMain.pm < PACMain.pm.ctrl+shift+tab.patched
    

    The patch file is:

    --- PACMain.pm.original 2012-11-02 03:27:09.000000000 -0600
    +++ PACMain.pm.ctrl+shift+tab.patched   2012-11-05 13:15:19.852549813 -0600
    @@ -1898,6 +1898,18 @@
                                            }
                                    }
                            }
    +                       elsif ( $shift && (( $keyval eq 'Tab' ) || ( $keyval eq 'ISO_Left_Tab' )) )
    +                       {
    +                               $$self{_PREVTAB} = $curr_page;
    +                               if ( $curr_page == 0 )
    +                               {
    +                                       $$self{_GUI}{nb} -> set_current_page( -1 );
    +                               }
    +                               else
    +                               {
    +                                       $$self{_GUI}{nb} -> prev_page;
    +                               }
    +                       }
                            else
                            {
                                    return 0;
    

    Remember it will only work on version 4.4.1.

    Hope it helps someone.

     
  • Hi!
    Thank you so much!
    I just added that piece of code! :)

    - David.