Detecting delete key pressed on a line in a headed list

Doug Easterbrook doug at artsman.com
Mon Jun 29 19:33:40 UTC 2026


hi Nick.

thanks for the suggestions.

I already have context menus, and 'edit' menu that allows the line to be delete using ctrl keys against a headed list.

I’ve grown really accustomed to using apple mail and making a like go away that I don’t like using the 'delete' key on a keyboard.

I have two contextual capabilities in the headed list - one is to physically delete lines, the other is to 'hide' the lines by removing them from the list.    Sometimes I want to hide lines in any list that deals with accounting where we try to balance certain things to a GL.


good suggestions.



Doug Easterbrook

> On Jun 29, 2026, at 5:42 AM, Nick Renders via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi Doug,
> 
> Personally, I would opt for a context menu and add a shortcut combination, for instance "Ctrl+D".
> The only drawback I see, is that you won't be able to use a single key, like the delete key.
> But it has some other benefits:
> - the shortcut is "documented" for the user (just right-click the headed list and there it is)
> - no need to enable key events (extra security hassle, at least on macos)
> 
> We use context menus on most of our headed lists, and load them up with default functionality like:
> - Copy Cell
> - Copy Lines (i.e. a tab delimited string of the selected lines)
> - Invert Selection
> - Remove Lines
> - Enable Drag & Drop (our users like to select lines by clicking one and then dragging the mouse up or down, but that only works with drag mode disabled so that is our standard behaviour)
> 
> Extra functionality which is specific to the headed list, is added when we construct the object. For instance, color codes: "Green = Customers who have been good" and "Red = Customers who have been naughty". Again, a quick way to document stuff so that the user doesn't have to guess what a magenta line means.
> 
> Just my 2 petrodollars ;-)
> 
> Nick Renders
> 
> 
> On 25 Jun 2026, at 22:18, Doug Easterbrook via omnisdev-en 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



More information about the omnisdev-en mailing list