On Sat, Aug 16, 2008 at 12:09 PM, Nick Hughart <[EMAIL PROTECTED]> wrote: > Gustavo Sverzut Barbieri wrote: >> >> On Sat, Aug 16, 2008 at 9:55 AM, Fedor Gusev <[EMAIL PROTECTED]> wrote: >> >>> >>> Hello. >>> >>> First of two attached patches brings an API that allows one to handle >>> key pressing while DND using two functions: >>> >>> EAPI void e_drag_key_down_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, >>> Ecore_X_Event_Key_Down *e)); >>> EAPI void e_drag_key_up_cb_set(E_Drag *drag, void (*func)(E_Drag *drag, >>> Ecore_X_Event_Key_Up *e)); >>> >>> Both callbacks are called when a key is down/up while drag. >>> >>> Second patch uses this API to use modifiers in EFM drag. If you hold >>> Control while drag the action is Copy, Alt -- action is Ask, Shift -- >>> action is Move. The icons get signals 'e,state,move', 'e,state,copy', >>> 'e,state,ask' with source 'e', so one can modify a theme to show which >>> action would be performed. Note that you need a modified Ecore_X for >>> this to work, see my previous mail. >>> >> >> Hi Fedor, I haven't tried or read the code, sorry, but from your >> description "Ask" is only from "alt"? What is the action when no >> modifier is used? Defaulting to "ask" would be the best option. Also, >> maybe the ask dialog could point Move/Copy could be automatically >> selected with Control/Shift. >> > > Well the default action is move right now as it is in most file managers > afaik. Ask should actually be implemented on a right click drag eventually, > but since the deadline was approaching I just had him do it with a modifier. > Right click drags will require some extra modifications.
Yes, and I know about deadlines and I actually like modifier keys more than right-middle clicks. I was just pointing an possible usability issue, easily to fix (I guess). > I don't > understand your last sentence, but the ask pops up a menu to click on . Are > you saying we should provide hotkeys for this menu? Something like KDE's: Move [Shift] Copy [Control] ------------------ Cancel AFAIK it does not act on the popup (clicking shift while in the menu), but when you do the drag. Anyway, better 1) give it a try and 2) try to provide a patch, I'll do it later today. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [EMAIL PROTECTED] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel