Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
IDE improvement, IsEditableTextKey()
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
The weird Rewrite bug
by
Nitorami
[
Today
at 10:55:05 am]
FpDebug unexpected Assemb...
by
440bx
[
Today
at 10:34:54 am]
InstallAware Using Lazaru...
by
Thaddy
[
Today
at 10:13:05 am]
Lazarus for Windows on aa...
by
hansotten
[
Today
at 09:59:24 am]
CocoaInt.CocoaIconUse no ...
by
MISV
[
Today
at 09:20:40 am]
Azure sql database will n...
by
paweld
[
Today
at 07:41:17 am]
Does anyone know why this...
by
TYDQ
[
Today
at 06:39:17 am]
TBGRABitmap.TextSize retu...
by
hedgehog
[
Today
at 06:07:46 am]
AI, NLP and CAI: Text Gen...
by
schuler
[
Today
at 04:26:36 am]
Demoscene Square dot flag...
by
KodeZwerg
[
Today
at 03:47:30 am]
How does Castle Game Eng...
by
michalis
[
Today
at 02:51:40 am]
Have anyone develop UEFI ...
by
440bx
[April 16, 2024, 09:39:52 pm]
For-in loop over constant...
by
VisualLab
[April 16, 2024, 09:15:53 pm]
BUG REPORT: Unable to gen...
by
PascalDragon
[April 16, 2024, 09:02:49 pm]
Lazarus project made on M...
by
Odacir
[April 16, 2024, 08:56:58 pm]
Is it possible to support...
by
PascalDragon
[April 16, 2024, 08:51:36 pm]
CORBA interface and Varia...
by
PascalDragon
[April 16, 2024, 08:35:43 pm]
Macros confuse error mess...
by
PascalDragon
[April 16, 2024, 08:13:25 pm]
Form scaling
by
fxeconomist
[April 16, 2024, 08:09:39 pm]
Post your internal error ...
by
Eugene Loza
[April 16, 2024, 07:12:35 pm]
C-evo: New Horizons 1.3.0...
by
Chronos
[April 16, 2024, 06:32:41 pm]
How can i make this windo...
by
Handoko
[April 16, 2024, 06:23:43 pm]
pre-processor symbol when...
by
paule32
[April 16, 2024, 05:11:35 pm]
How are cookies share Web...
by
Thaddy
[April 16, 2024, 04:59:59 pm]
Values of a custom compon...
by
CM630
[April 16, 2024, 01:42:08 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: IDE improvement, IsEditableTextKey() (Read 2086 times)
AlexTP
Hero Member
Posts: 2401
IDE improvement, IsEditableTextKey()
«
on:
July 27, 2021, 10:43:45 pm »
I suggest faster code for LCLProc function:
Code: Pascal
[Select]
[+]
[-]
function
IsEditableTextKey
(
Key
:
Word
)
:
Boolean
;
begin
Result
:
=
(
Ord
(
Key
)
<
=
$FF
)
and
(
byte
(
Key
)
in
[
VK_A
..
VK_Z
,
VK_0
..
VK_9
,
VK_NUMPAD0
..
VK_DIVIDE
,
VK_OEM_1
..
VK_OEM_3
,
VK_OEM_4
..
VK_OEM_7
]
)
;
end
;
Logged
CudaText editor
-
ATSynEdit
-
More from me
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
IDE improvement, IsEditableTextKey()
TinyPortal
© 2005-2018