trichview.support
Select All Shortcut |
Author |
Message |
Holger Warzelhan |
Posted: 08/26/2004 13:21:39 Hello, The TRichViewAction SelectAll has a Shortcut CTRL-A already defined. That causes the current document to be selected when I press CTRL-A, no matter if rv has the focus or not. I wanted to change this, so that CTRL-A only works if the user is actually "in" the rv, meaning it has the focus. So I removed the shortcut form rvaSelectAll, and put this code into the KeyDown-Event of rv: - case Key of - 65, 97: // 'A','a' - if Shift = [ssCtrl] then - rvaSelectAll.Execute; - end; This works fine now, only selects if rv has the focus, but if the caret is in a table cell, and I press CTRL-A, I get one of two exceptions: - Access Violation... - Privileged Instruction Is what I am doing wrong? If so, is there another way to limit the shortcuts to the focused control? Thanks for any help! Holger |
Powered by ABC Amber Outlook Express Converter