Forum > General

IDE improvement, IsEditableTextKey()

(1/1)

Alextp:
I suggest faster code for LCLProc function:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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;  

Navigation

[0] Message Index

Go to full version