By this point, a synthetic event needs to be sent, so the current mouse position and window position data are recorded.
此时,需要发送一个合成事件,因此将记录当前的鼠标位置和窗口位置。
You started by looking at the Event module, which defines how page elements react to a multitude of interactions, including mouse interaction, keyboard interaction, and focus interaction.
您先是接触了Event模块,该模块定义页面元素如何响应各种交互,其中包括鼠标交互、键盘交互和焦点交互。
If events are extracted immediately after the Tk mouse is pressed on Submit, the mouse-down event (and subsequent release event) will not be picked up by the cnee program.
如果在Tk鼠标被按下Submit之后立即提取事件,cnee程序将不会提取鼠标按下事件(及后续释放事件)。
As mentioned, Editor tabs have a default drag-and-drop behavior meant for rearranging and tiling, which is implemented by having listeners for drag-detect, mouse-move, and mouse-up event types.
正如上面介绍的一样,编辑器标签有一种默认的拖放行为,它将进行重新排列和平铺操作,这可以使用拖放检测、鼠标移动和鼠标释放类型的事件的监听器实现。
Each time a mouse drag event occurs, a (possibly quite short) black line is drawn between the saved point and the location of the event.
每次发生鼠标拖动事件时,在保存的点和该事件位置之间就会画出一条黑线(可能很短)。
The handler for this event receives the column index and row index of the mouse pointer position.
此事件的处理程序接收鼠标指针所在位置的列索引和行索引。
If you use the onchange event to enable and disable the other controls, it will work with a mouse but not a keyboard.
如果您使用onchange事件启用和禁用其它控件,那么它将在鼠标下工作而在键盘下不起作用。
There will be no separation between the specification part and the event part, however no icon or region specifications will follow the first mouse click.
数据定义部分的输入和点击事件部分的输入之间没有间隔,但开始输入鼠标数据后,将不再会出现图标或区域数据。
When that happens, the mouse click event travels from the root of the document to the target (li) and back again. The sequence is.
当这发生时,鼠标单击事件从文档根行进到目标(li)并再次返回。
Next, add into the init method the code to link the mouse movement handler with the event and save all your changes. Your init method should look something like Listing 9.
接下来,在init方法中添加代码,将鼠标移动处理程序与事件关联起来,然后保存修改。
Add mouse-event handling to the auto-complete control.
为自动完成控件添加鼠标事件处理。
An event, such as a mouse click, is intended for a target. For example, in the page shown in Listing 7.
如鼠标单击之类的事件可以作为目标。
In any event, other trends suggest that for every Timmy Willie, there is a Johnny Town-Mouse: many people like urban life and want to go on living in a city, particularly the centre.
不管怎么说,有的迹象显示有蒂米•威利(Timmy Willie)就会有城市鼠约翰尼(Johnny Town-Mouse)存在(译注:2):很多喜欢城市生活的人希望住到城市里,特别是住到市中心去。
In this example, you'll utilize the Event, Attribute, and CSS modules to define how the Web mail application deals with single mouse-clicks and double mouse-clicks.
在本例中,将利用Event、Attribute和CSS模块来定义Web邮件应用程序将如何处理鼠标单击和双击。
Rat happy auspicious, 08, of the hair and wish you all: "rats" not happy "rats" countless joyous event, "mouse" countless more good news, "mouse" endless harvest, "mouse" not happy.
鼠年喜庆吉祥,08发发发发,祝愿大家:“鼠”不尽的欢乐、“鼠”不尽的喜事、“鼠”不尽的佳音、“鼠”不尽的收获、“鼠”不尽的幸福。
The application's "event loop" will send keyboard actions, mouse events and menu selections to this focus object.
应用程序的“事件循环”会给这个聚焦的对象发送键盘键盘动作、鼠标事件和菜单选择等行为。
Clearly indicate each link's destination. Keep navigation structures and nomenclature visible, rather than hiding them until the user has triggered an event (such as a mouse over).
明确标示每个链接的目标。保持导航结构和命名的可见性,而不要隐藏它们,不要直到用户触发一个事件(比如鼠标移过)才显示。
Where was the mouse when the event happened?Was any key pressed?Finally, browser vendors had to decide what happened when an element and its parent element both had a handler for the same event.
当事件发生时鼠标在哪里?键盘被按下了吗?最后,当一个元素和父级元素拥有处理同一个事件的处理器时,浏览器厂商也必须作出判断。
Which mouse button was depressed is determined by checking the arguments of the event.
通过检查事件的参数来确定按下了哪个鼠标按钮。
Which mouse button was released is determined by checking the arguments of the event.
通过检查事件的参数来确定释放了哪个鼠标按钮。
The Code Editor opens and the mouse pointer is located inside the newly created default event handler.
打开代码编辑器,将鼠标指针定位到新创建的默认事件处理程序内。
This event is typically raised when the user places the mouse pointer over the menu item.
当用户将鼠标指针放在菜单项上时,通常会引发此事件。
For example, you can replace mouse event handlers without affecting menu event handlers or keyboard event handlers.
例如,您可以在不影响功能表事件处理常式或键盘事件处理常式的情况下,取代滑鼠事件处理常式。
Additionally, this event provides information about the keyboard or mouse gesture that was used to enter editing mode, and gives you the option of canceling edit mode.
另外,此事件也会提供有关进入编辑模式所使用之键盘和滑鼠笔势的资讯,并可让您选择取消编辑模式。
Specifies the event-injected flag. An application can use the following value to test the mouse flags.
指定事件注入标志。应用程序可以使用下列值来测试鼠标标志。
Handling the event near the root and handling it by a child further toward the source may not be appropriate for composited controls, where the compositing pieces might have expected mouse behaviors.
对于组成成分可能具有预期鼠标行为的复合控件,处理接近根的事件并且由源方向的下一代子级处理该事件可能并不正确。
Handling the event near the root and not handling by a child further toward the source may not be appropriate for composited controls, where the compositing pieces might have expected mouse behaviors.
对于组成成分可能具有预期鼠标行为的复合控件,处理接近根的事件并且不由源方向的下一代子级处理该事件可能并不正确。
The following example creates a mouse button event handler that changes the color of the object that raised the event.
下面的示例创建一个鼠标按钮事件处理程序,该处理程序用于更改引发事件的对象的颜色。
The following example creates a mouse button event handler that changes the color of the object that raised the event.
下面的示例创建一个鼠标按钮事件处理程序,该处理程序用于更改引发事件的对象的颜色。
应用推荐