Lazarus
Using the Lazarus IDE => General => Topic started by: AlexTP on July 27, 2021, 10:43:45 pm
Title:
IDE improvement, IsEditableTextKey()
Post by:
AlexTP
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
;
TinyPortal
© 2005-2018