GNS3 / gns3-gui

GNS3 Graphical Network Simulator
http://www.gns3.com
GNU General Public License v3.0
2.12k stars 434 forks source link

Fit In View Shortcut Key #3608

Closed braza2004 closed 2 months ago

braza2004 commented 2 months ago

What I Did

In response to Issue #3607, I have bound Ctrl + 1 to the "Fit in View" option in the View menu by adding a elif condition in the keyPressEvent() function in main_window.py. This shall, hopefully, resolve the first part of issue #3607.

braza2004 commented 2 months ago

@grossmj can you please review this!

grossmj commented 2 months ago

Thanks for your PR. I have just added the shortcut directly in the .ui file instead.