ImageEn, unit ieview

TIEView.OnKeyboardShortcut

TIEView.OnKeyboardShortcut


Declaration

property OnKeyboardShortcut: TIEKeyboardShortcutEvent;


Description

Occurs whenever the user clicks a KeyboardShortcuts to disable processing or enable custom handling.


Example

procedure TForm1.ImageEnView1KeyboardShortcut(Sender: TObject; Shortcut: TShortCut; var Allow: Boolean);
begin
  // Prevent pasting to the background layer
  if ( ImageEnView1.LayersCurrent = 0 ) and ( Shortcut = scCtrl or VK_V ) then
    Allow := False;
end;


See Also

TIEGlobalSettings.KeyboardShortcuts
TImageEnView.KeyInteract
TImageEnMView.KeyInteract
FAQ: Disabling all keyboard shortcuts