Detecting delete key pressed on a line in a headed list
Mike Matthews - Omnis
omnis at lineal.co.uk
Fri Jun 26 07:14:43 UTC 2026
Lovely.
Mike
Sent from my iPad
> On 25 Jun 2026, at 23:09, Doug Easterbrook via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>
> External sender <omnisdev-en at lists.omnis-dev.com>
>
> Make sure you trust this sender before taking any actions.
>
> hi Alan
>
> thanks for that made it real easy. I now turn on keyevents for the headed list field and my code becomes
>
> On evKey
> # allow use of delete key on one or more lines in the list.
> # the constant is kBack (30), perhaps 34 on windows may also work per documentation online
> If pSystemKey=kBack|pSystemKey=34
> Do 'what ever code will delete the data'
> End If
>
>
>
> Doug Easterbrook
>
>> On Jun 25, 2026, at 1:29 PM, Alan Davey via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>
>> Hey Doug,
>>
>> I haven't tested against a headed list, but I believe it's pSystemKey you
>> want instead of pKey. There should be a constant for the delete key as
>> well, but I can't look for it at the moment.
>>
>> Hope this helps,
>>
>> Alan
>>
>>> On Thu, Jun 25, 2026 at 4:18 PM Doug Easterbrook via omnisdev-en <
>>> omnisdev-en at lists.omnis-dev.com> wrote:
>>>
>>> hi $all
>>>
>>>
>>> has anybody done the work to detect the delete key is pressed on a line
>>> (or multiple lines) in a headed list?
>>>
>>> I’ve tried turning on key events, capturing evkey and then trying to look
>>> at pKey to see if there is a way to distinguish .. but not having any luck.
>>>
>>> ideally, I’d like to let the user select a bunch of lines in a list, then
>>> hit the delete key to initiate a remove function.
>>>
>>> I’m using Studio 11.2 if that helps.
>>>
>>>
>>> thanks in advance.
>>>
>>>
>>>
>>>
>>> Doug Easterbrook
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at https://lists.omnis-dev.com/
>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>>>
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com/
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com/
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list