com.smartgwt.client.widgets.events
Interface HasKeyPressHandlers

All Superinterfaces:
HasHandlers
All Known Implementing Classes:
Button, Calendar, Canvas, ColorPicker, ColumnTree, DateChooser, DetailViewer, Dialog, DynamicForm, EdgedCanvas, FilterBuilder, HLayout, HStack, HTMLFlow, HTMLPane, IButton, Img, ImgButton, ImgSectionHeader, ImgSplitbar, ImgTab, Label, Layout, LayoutSpacer, ListGrid, Menu, MenuBar, MenuButton, MultiFilePicker, Progressbar, PropertySheet, RichTextEditor, Scrollbar, SearchForm, SectionHeader, SectionStack, Slider, Snapbar, Splitbar, StatefulCanvas, StretchImg, StretchImgButton, TabSet, TileGrid, TileLayout, Toolbar, ToolStrip, ToolStripResizer, ToolStripSeparator, TreeGrid, ViewLoader, VLayout, VStack, WidgetCanvas, Window

public interface HasKeyPressHandlers
extends HasHandlers


Method Summary
 HandlerRegistration addKeyPressHandler(KeyPressHandler handler)
           Executed when a key is pressed and released on a focusable widget (canFocus: true).
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Method Detail

addKeyPressHandler

HandlerRegistration addKeyPressHandler(KeyPressHandler handler)
Executed when a key is pressed and released on a focusable widget (canFocus: true).

Use EventHandler.getKey() to find out the com.smartgwt.client..KeyName of the key that was pressed, and use EventHandler.shiftKeyDown() and related functions to determine whether modifier keys were down.

Parameters:
handler - the keyPress handler
Returns:
HandlerRegistration used to remove this handler