Fwd: kstdaccel patch
Allan Sandfeld Jensen
kde at carewolf.com
Tue Mar 16 21:51:32 GMT 2004
On Monday 15 March 2004 20:27, David Faure wrote:
> On Monday 15 March 2004 13:54, Felix Berger wrote:
> > On Monday 15 March 2004 13:23, Lubos Lunak wrote:
> > > /**
> > > - * Goto beginning of current line. Default: Home
> > > + * Goto beginning of the document. Default: Ctrl-Home
> > > * @return the shortcut of the standard accelerator
> > > */
> > > const KShortcut& home();
> >
> > Yes, In this case I adapted the documentation to the code, which already
> > set "Ctrl-Home" as default key binding.
> >
> > But I like your suggestion to introduce "beginningOfDocument()" and
> > "endOfDocuement()" it's less prone to misunderstandings.
> >
> > Actually I would like all ScrollViews to honor these shortcuts, but I
> > guess that's not trivially possible since there is no KScrollView class
> > and Qt follows the inheritance pattern for classes like QListView (which
> > inherits QScrollView)
>
> This can be done in the KApplication global event filter, like we do to
> make QLineEdit respect Ctrl+A etc.
I had no idea we did that. I just tested it, while Ctrl+E works, Ctrl+A is
overloaded as mark all instead.
More information about the kde-core-devel
mailing list