After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 768809 - editor-frame: Process key press events in the replace entry field
editor-frame: Process key press events in the replace entry field
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-07-14 14:45 UTC by Matthew Leeds
Modified: 2016-07-14 18:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
editor-frame: Process key press events in the replace entry field (2.71 KB, patch)
2016-07-14 14:45 UTC, Matthew Leeds
accepted-commit_now Details | Review

Description Matthew Leeds 2016-07-14 14:45:05 UTC
See the commit message.
Comment 1 Matthew Leeds 2016-07-14 14:45:08 UTC
Created attachment 331500 [details] [review]
editor-frame: Process key press events in the replace entry field

When the user presses Enter, Escape, Up, or Down when the search entry
field is focused, the search is executed, exited or advanced to the next
result, respectively. This commit replicates that behavior for the
replace entry field.
Comment 2 Christian Hergert 2016-07-14 18:17:41 UTC
Can we do this with keybindings + signal actions instead of key-press-event? Doing things directly from key-press-event should be avoided when possible because it can screw up input-methods.
Comment 3 Matthew Leeds 2016-07-14 18:40:13 UTC
I was just copying how the search entry keybindings are set up. Is that one a special case?
Comment 4 Christian Hergert 2016-07-14 18:48:32 UTC
Yeah, I guess it's sort of tricky to get those implemented correctly here because we would have to rely on the .css to assign the binding. We should probably add a TODO though.
Comment 5 Christian Hergert 2016-07-14 18:49:06 UTC
Review of attachment 331500 [details] [review]:

Go ahead and push this as is, and we can take a look at using keybindings in the future.
Comment 6 Matthew Leeds 2016-07-14 18:54:53 UTC
Pushed as commit 765ddeb11cea46c591fbcdaab98e39485c1b1ffc