From kdevelop-devel Thu Apr 20 07:36:14 2006 From: Hamish Rodda Date: Thu, 20 Apr 2006 07:36:14 +0000 To: kdevelop-devel Subject: Re: Shortcut problem: Ctrl-Enter Message-Id: <200604201736.16541.rodda () kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=114551867510967 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart114554862.SP6aOXEi84" --nextPart114554862.SP6aOXEi84 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 20 April 2006 16:56, Vladimir Prus wrote: > Hi, > > I was trying to improve variable widget a bit, and run into a problem. The > bottom of the variable widget has a input line where user can type an > expression. To evaluate that expression, user can either just click Enter, > or click "Evaluate button", but to watch the expression, he has to click > the "Watch" button -- there's no keyboard access. > > This is somewhat inconvenient, so I wanted to make "Ctrl-Enter" watch > expression. However, this is already a global shortcut for "show context > menu", set in editorproxy.cpp. > > I've a number of questions: > > 1. Is there are way to override shortcut for variablewidget? I'm trying to > add keyPressEvent, but shortcut handling is done in event filter, so my > method is not even called. Perhaps your own event filter? Or is this the X11 event filter you're talki= ng=20 about. > 2. Failing (1), does it make sense to have "Ctrl-Enter" shortcut work > globally. If I type "Ctrl-Enter" in variablewidget, then certainly showing > popup menu in *editor* is unexpected. Any approach to limiting the shortc= ut > only to editor windows? I think that should be the case, how to technically achieve it with KAccel = I=20 don't know about. In KDE4 it's already solved with=20 QAction::setShortcutContext(). > 3. Do we need this shortcut for popup menu at all? I'd say no, but then I didn't know about it... =46rom my POV, just remove it. Cheers, Hamish. --nextPart114554862.SP6aOXEi84 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBERznwH8BtnSmIlUYRAmnPAJ9BChSLsSdvV5/wesaBGK64CuSFCACgj98a YHUK/P1fafuGDHycpeYJVIQ= =vgkV -----END PGP SIGNATURE----- --nextPart114554862.SP6aOXEi84-- _______________________________________________ KDevelop-devel mailing list KDevelop-devel@barney.cs.uni-potsdam.de http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel