Recent

Author Topic: Differ 1..0 from Num1..Num0 in ShortcutToText?  (Read 2701 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Differ 1..0 from Num1..Num0 in ShortcutToText?
« on: March 29, 2015, 01:21:52 pm »
Afaik, some Delphi differs this, ie, it has result of ShortcutToText as "Num1".."Num0" for num-keys.
Why, because it gives more variants of assigning user keys: app can store to ini more keys after ShortcutToText.
Why not, maybe some app reacts to keys via
if ShortcutToText(str)='1'
, for this app better to have 1..0 for numkeys.

Variant of Num1..Num0 better? (I can make patch)
« Last Edit: March 29, 2015, 01:28:52 pm by Alextp »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Differ 1..0 from Num1..Num0 in ShortcutToText?
« Reply #1 on: March 29, 2015, 01:34:31 pm »
I think you should keep Delphi compatibility.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Differ 1..0 from Num1..Num0 in ShortcutToText?
« Reply #2 on: March 29, 2015, 02:05:41 pm »
Afaik, some Delphi differs this, ie, it has result of ShortcutToText as "Num1".."Num0" for num-keys.
Why, because it gives more variants of assigning user keys: app can store to ini more keys after ShortcutToText.
Why not, maybe some app reacts to keys via
if ShortcutToText(str)='1'
, for this app better to have 1..0 for numkeys.

Variant of Num1..Num0 better? (I can make patch)
num1 is in the numeric keypad while 1 is on the top of your keyboard just below your Fx keys so yes make sure that both can be used not only one of them or worst both the same time.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Differ 1..0 from Num1..Num0 in ShortcutToText?
« Reply #3 on: March 29, 2015, 02:40:09 pm »
Variant of Num1..Num0 better? (I can make patch)
Don't bother making a patch.
The purpose of Lazarus is to be (-come) a 100% Delphi clone.
Heaven forbid if you suggest an improvement.
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Re: Differ 1..0 from Num1..Num0 in ShortcutToText?
« Reply #4 on: March 29, 2015, 02:42:26 pm »
Patch needed for delphi-variant (yet result is always "1..0")

 

TinyPortal © 2005-2018