com.smartgwt.client.widgets.events

## Interface KeyPressHandler

- All Superinterfaces:
    com.google.gwt.event.shared.EventHandler

      public interface KeyPressHandler
      extends com.google.gwt.event.shared.EventHandler

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onKeyPress(KeyPressEvent event)` Executed when a key is pressed and released on a focusable widget (`canFocus`: true).

- - ### Method Detail

    - #### onKeyPress

          void onKeyPress(KeyPressEvent event)

      Executed when a key is pressed and released on a focusable widget (`canFocus`: true).

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

      Parameters:
        `event` - the event