ralsina / marave

Automatically exported from code.google.com/p/marave
GNU General Public License v2.0
0 stars 2 forks source link

Missing shortcuts #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As of r266 many "menu" actions have no shortcuts, and they should.

Example: font size could be increased via ctrl+ as in web browsers.

Original issue reported on code.google.com by roberto.alsina on 15 Feb 2010 at 3:05

GoogleCodeExporter commented 9 years ago
I have added some code in the MainWidget class where all the shortcuts are 
defined that allows increasing/decreasing the font with Ctrl++/Ctrl+-:

self.sc14 = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Ctrl++","Larger")), 
self);
self.sc14.activated.connect(self.editor.larger)
self.sc15 = QtGui.QShortcut(QtGui.QKeySequence(self.tr("Ctrl+-","Smaller")), 
self);
self.sc15.activated.connect(self.editor.smaller)

Original comment by jessca...@gmail.com on 9 Apr 2011 at 6:43