Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

lcl-test-menu-special-shortcuts

Lazarus LCL test - menu items with special shortcuts (like Home, F, Ctrl+Z) but still allow editboxes to handle them

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

lcl-test-menu-special-shortcuts

In Lazarus LCL (and also in Delphi VCL) if you have a menu item with shortcut Home, F, Ctrl+Z -- this prevents from using these shortcuts in normal fashion in edit boxes (like TEdit and TComboBox).

This is quite troublesome for Castle Game Engine editor, that

  • wants to have some simple natural shortcuts for various operations (Home, F, Ctrl+Z) as they are very useful to design components
  • ... but also wants to enable using these shortcuts for normal editing in TEdit / TComboBox when they are focused.

In this repo, we explore a workaround (a really, really, really big hack...) to this.