Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ctrl+c and ctrl+v #52

Merged
merged 1 commit into from May 29, 2017
Merged

Fix ctrl+c and ctrl+v #52

merged 1 commit into from May 29, 2017

Conversation

quozl
Copy link
Contributor

@quozl quozl commented May 2, 2017

Problem: ctrl+c and ctrl+v do not work in the URL entry, but emit an alert sound.

Analysis: the key-press-event handlers for the activity, the toolbar, and the entry widget are coded to pass unhandled events to the Gtk.Entry widget, and this happens properly when sugar3.IconEntry is used with the example, but not when used with the activity. Cause unknown.

Solution: explicitly handle the ctrl+c and ctrl+v events.

References:
https://bugs.sugarlabs.org/ticket/4979
https://bugs.sugarlabs.org/ticket/4642

[explicit handling of events]
Written-by: GAURAV MISHRA gauravm043@gmail.com

[test, review, and switch to Gdk.KEY_* constants]
Signed-off-by: James Cameron quozl@laptop.org

Problem: ctrl+c and ctrl+v do not work in the URL entry, but emit an
alert sound.

Analysis: the key-press-event handlers for the activity, the toolbar,
and the entry widget are coded to pass unhandled events to the Gtk.Entry
widget, and this happens properly when sugar3.IconEntry is used with the
example, but not when used with the activity.  Cause unknown.

Solution: explicitly handle the ctrl+c and ctrl+v events.

References:
https://bugs.sugarlabs.org/ticket/4979
https://bugs.sugarlabs.org/ticket/4642

[explicit handling of events]
Written-by: GAURAV MISHRA <gauravm043@gmail.com>

[test, review, and switch to Gdk.KEY_* constants]
Signed-off-by: James Cameron <quozl@laptop.org>
@quozl quozl merged commit 1ab1e26 into sugarlabs:master May 29, 2017
@quozl quozl deleted the 2017-122-4979 branch May 29, 2017 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant