macos:Selection-feedback
出自UXGuide.net
请帮助我们修订和更新本文的中文部分
本文的中文部分虽然取自官方最新中文版本,但与英文原版相比已落后了一年多,可能无法反映英文版本中最近的修改,且文中笔误、前后译法矛盾、未翻译完全的片断较多,请您帮助一起修订完善。详情参见中文版修订完善计划。
选定对象的反馈
Selection Feedback
This section covers issues that deserve special mention in the context of drag and drop. Selection feedback is discussed in more detail in “Selecting”
本小节涵盖了在拖拽的上下文中应该特别提到的一些问题。关于选取对象的反馈的更细节的讨论请参考”选定”。
单手势选定和拖动 Single-Gesture Selection and Dragging
Because dragging is defined as moving the mouse while the mouse button is held down, a mouse-down event must occur before dragging can take place. A selection can be made as a result of this mouse-down event, just before the user starts dragging. For example, the user can select and drag a folder icon in a single gesture; the user does not have to click the folder icon first, release the mouse button, and then press again to begin dragging the icon. Your application should ensure that implicit selection occurs, when appropriate, when the user starts dragging.
因为拖动被定义为按下鼠标并移动鼠标,所以一个mouse-down事件必须发生在拖动之前。选取对象操作可以作为mouse- down事件的一个结果,仅仅发生在用户开始拖动之前。例如,用户可以通过一个手势就选取并拖动一个文件夹图标,而不需要先点击文件夹图标,松开鼠标,然后再次按下鼠标并开始拖动图标。您的程序应该保证合适的时候或者用户开始拖拽的时候,隐式的选取操作已经发生。
Single-gesture selection and dragging is possible only when the process of selecting an item does not require dragging. Range-selection operations—such as selecting text or multiple graphic objects—don’t lend themselves to single-gesture selection and dragging because the range-selection operation itself requires dragging.
单手势选定对象并拖动仅仅在选取对象操作的过程中不需要拖动时才成为可能。范围选取操作─例如选择文字或者多个图形对象─不可能拥有单手势选取并拖动,因为范围选择本身就需要拖拽操作。
后台选定 Background Selections
When a window containing a highlighted selection becomes inactive, your application should maintain the selection so that users can drag previously selected data from inactive windows to the active window.
当一个含有高亮选定内容的窗口成为非活动窗口时,您的程序应该保持选定的内容,从而用户可以将之前选定的数据从非活动窗口中拖拽到活动的窗口中。
Background selections are not required if the dragged item is discrete—for example, an icon or graphical object—because implicit selection can occur when an item is dragged. However, items selected only by range-selection operations—for example, text or a group of icons—must have a background selection to allow the user to drag these items out of inactive windows. Whenever an inactive window is made key, the background selection, if any, becomes highlighted as a normal selection.
当拖拽的对象是单独的时,后台选取不是必须的─例如,一个图标或者一个图像—因为对象被拖拽时将被隐式选定。然而,只能范围选取的对象─例如文字或者一组图标─则必须有后台选定来允许用户将他们拖拽出非活动的窗口。当非活动窗口成为活动窗口时,如果有后台选定 的对象,则成为普通的选定对象。