[haiku-commits] Re: r35715 - haiku/trunk/src/kits/tracker

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 17 Mar 2010 16:58:46 +0100

Philippe Houdoin <philippe.houdoin@xxxxxxxxx> wrote:
> > Even for small files, one would usually expect the file name to 
> > appear
> > when dragging a text file to a text control. Or maybe have 
> > BTextControl
> > insert the path, and BTextView insert the file -- a preview would 
> > be
> > nice then, though.
> Having non-predictable behavior on drag depending on target type, 
> even when
> both are text controls, sounds dangerous.

BTextView and BTextControl look very different, and don't leave room 
for confusion IMO.
BTW the code is currently completely broken, was that you Rene?
The most annoying problem is that the path is always appended, never 
replaced (no matter the previous selection). And for BTextControls, 
this really hardly ever makes sense, anyway.
Applications like Expander already implement the functionality, and 
there it makes sense, too. Maybe have it enabled only on demand?

> If you want alternative behavior on drop, let's use alternative drop
>  method. Usually, it's based on modifier(s) or alternative button 
> hold at
> drop time. AFAICT, Tracker handle differently a drop action trigger 
> by left
> or right button, no?

I wouldn't mind a menu on right click drop where you can actually select 
how the ref should be handled.
A modifier could be used to automatically set one of those 
possibilities.

Bye,
   Axel.


Other related posts: