Re: Clash between EntryCompletion functionality and key-press-event
- From: muppet <scott asofyet org>
- To: Daniel Kasak <dkasak nusconsulting com au>
- Cc: gtk-perl-list gnome org
- Subject: Re: Clash between EntryCompletion functionality and key-press-event
- Date: Tue, 17 Apr 2007 01:24:04 -0400
On Apr 17, 2007, at 12:53 AM, Daniel Kasak wrote:
I'm *also* intercepting keypress events:
...
if (
$event->keyval == $Gtk2::Gdk::Keysyms{ Return } ||
$event->keyval == $Gtk2::Gdk::Keysyms{ KP_Enter }
) {
...
to get the focus to move along when the enter key is pressed.
The Enter key in an Entry actually causes the Entry to emit the
"activate" signal. Try connecting to that instead of to the key-
pressed event. That way not only is it more obvious what you're
doing, there's less likelihood of getting fouled up by order of
operations in key event handling, which is kinda what sounds like is
happening.
--
If the monkey could type one keystroke every nanosecond, the expected
waiting time until the monkey types out Hamlet is so long that the
estimated age of the universe is insignificant by comparison ... this
is not a practical method for writing plays.
-- Gian-Carlo Rota
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]