Menu

#402 Support for Ctrl+W shortcut

open
nobody
None
5
2022-09-17
2022-09-03
Florin9doi
No

After 12 years and 11 months, the support for Ctrl+W shortcut is ready.
It will resolve the following discussions:
https://sourceforge.net/p/sevenzip/discussion/45797/thread/5ffc7943/
and feature requests:
#1123 / https://sourceforge.net/p/sevenzip/feature-requests/1123/
#1388 / https://sourceforge.net/p/sevenzip/feature-requests/1388/
#1561 / https://sourceforge.net/p/sevenzip/feature-requests/1561/

1 Attachments

Discussion

  • Igor Pavlov

    Igor Pavlov - 2022-09-03

    And that patch will create another problems, because it doesn't save the state.

     
  • Florin9doi

    Florin9doi - 2022-09-03

    v2 attached which saves the window

     

    Last edit: Florin9doi 2022-09-03
  • Igor Pavlov

    Igor Pavlov - 2022-09-03

    note also that there is IDCLOSE code in MyLoadMenu.cpp:

        case IDCLOSE:
          SendMessage(hWnd, WM_ACTIVATE, MAKEWPARAM(WA_INACTIVE, 0), (LPARAM)hWnd);
          g_ExitEventLauncher.Exit(false);
          SendMessage(hWnd, WM_CLOSE, 0, 0);
          break;
    

    And now I don't remember all datails of these closing things.

    So maybe it's simpler to close via IDCLOSE?

                PostMessage(g_HWND, WM_COMMAND, IDCLOSE, 0);
    
     
  • Florin9doi

    Florin9doi - 2022-09-03

    So maybe it's simpler to close via IDCLOSE?

    It works and this way less changes are necessary. V3 attached.

     
  • Kambaa

    Kambaa - 2022-09-17

    Thank you for your efforts.

    Hello, I have been waiting patiently for this feature quite a long time. After reading this post, i wanted to try this at my pc and spent my saturday afternoon happily trying to build 7z from diffed src code, test it and replace my default installation 7zFMexe. And the result was a success.

    I put diff-added source code and successful build instructions for Win10 64 Bits Systems for anyone who is not knowledgable like me at github. https://github.com/Kambaa/7zip-src .

    I hope this feature is added without causing any glitch or extra work on next versions.

    Thank you and, have a great day.

     

    Last edit: Kambaa 2022-09-17

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.