diff --git a/core/java/com/android/internal/os/DeviceKeyHandler.java b/core/java/com/android/internal/os/DeviceKeyHandler.java index a960e7bd15c5..a0ce168f632f 100644 --- a/core/java/com/android/internal/os/DeviceKeyHandler.java +++ b/core/java/com/android/internal/os/DeviceKeyHandler.java @@ -15,6 +15,15 @@ public interface DeviceKeyHandler { + /** + * Invoked when an unknown key was detected by the system, letting the device handle + * this special keys prior to pass the key to the active app. + * + * @param event The key event to be handled + * @return If the event is consume + */ + public boolean handleKeyEvent(KeyEvent event); + /** * Invoked when an unknown key was detected by the system, letting the device handle * this special keys prior to pass the key to the active app.