#3992 closed task (fixed)
Views: implement long-press behavior
Reported by: | erikos | Owned by: | erikos |
---|---|---|---|
Priority: | Urgent | Milestone: | |
Component: | Sugar | Version: | 0.97.x |
Severity: | Major | Keywords: | r+, olpc-test-passed |
Cc: | manuq | Distribution/OS: | OLPC |
Bug Status: | Assigned |
Description
long-press should be equivalent to a right click, bring up the full Palette.
Attachments (11)
Change History (21)
comment:1 Changed 11 years ago by erikos
comment:2 Changed 11 years ago by erikos
- Priority changed from Unspecified by Maintainer to Urgent
We need this as well for the Activity list in the Frame, tap does switch directly to the Activity, long-press should reveal the Palette.
Changed 11 years ago by erikos
Patch for the toolit that adds the long-press eventcontroller to the EventIcon
comment:3 Changed 11 years ago by erikos
While testing I found out that on long press the Palette pops up and directly down again. This is because we do use a Gtk.Menu in the Views Palette and that does popdown on a long press and actually as well a long click (you can test this with a long click with the buttons as well).
The above patch tries to use our custom Palette for the AP icon. An issue with that approach is that currently you can not dismiss such a Palette by clicking somewhere around it. As well it does not automatically go away when a menu item is selected (see as well the 'remove' option for a usb key device in the Frame).
comment:4 Changed 11 years ago by erikos
- Cc manuq added
- Keywords r? added
comment:5 Changed 11 years ago by erikos
Carlos reviewed the event-controller patches, pushed them as:
Changed 11 years ago by erikos
CurrentActivityPalette: switch ActivityPalette from GTK.Menu to custom menu
Changed 11 years ago by erikos
NetworkView: add the custom SugarPalette instead of the GTK.Menu based one
comment:6 Changed 11 years ago by manuq
- Keywords r+ olpc-test-pending added; r? removed
- Resolution set to fixed
- Status changed from new to closed
All those went in, impressive work Simon.
In the favorites view, spiral layout, we have drag and drop code that breaks the long press behaviour, is being tracked here: http://bugs.sugarlabs.org/ticket/4014
comment:7 Changed 11 years ago by manuq
- Resolution fixed deleted
- Status changed from closed to reopened
Ups, reopenning because we still need long-press for the Activity list in the Frame.
comment:8 Changed 11 years ago by erikos
- Resolution set to fixed
- Status changed from reopened to closed
comment:9 Changed 10 years ago by greenfeld
- Keywords olpc-test-passed added; olpc-test-pending removed
Every main Sugar view seems to support both short and long taps in Sugar 0.98.2/13.1.0 os20.
We could pack the logic into the EventIcon directly like we do for the invoker.