Android Guides | Samples

Android.App.Dialog.OnKeyShortcut Method

Called when a key shortcut event is not handled by any of the views in the Dialog.

Syntax

[Android.Runtime.Register("onKeyShortcut", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyShortcut_ILandroid_view_KeyEvent_Handler")]
public virtual Boolean OnKeyShortcut ([Android.Runtime.GeneratedEnum] Keycode keyCode, KeyEvent e)

Parameters

keyCode
The value in event.getKeyCode().
e
Description of the key event.

Remarks

Called when a key shortcut event is not handled by any of the views in the Dialog. Override this method to implement global key shortcuts for the Dialog. Key shortcuts can also be implemented by setting the IMenuItem.SetShortcut(Char,Char) property of menu items.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11