Fixing Bug 46200 [Easy Hack]
Tharindu Amila Perera
amilastbmmv at gmail.com
Mon Mar 31 21:50:59 PDT 2014
Using the reply I found out that the events coming from the keyboard
has this behavior.
Using the argument KeyEvent coming to function in file tabvwsh4.cxx
bool ScTabViewShell::TabKeyInput(const KeyEvent& rKEvt)
I can get codes of all keys except of Caps-Lock, NumLock and
Scroll(Which is the needed input).
I noticed that when any of the above keys are pressed this function is
called twice. But in both events the keycodes are not accessible.
When CapsLock is on pressing key 'A' in keyboard will give the same
keycode as when it is not on. So there must be a place where it is
handled to differentiate a and A inputs. It would be appreciated if I
can get a code pointer for this.
On Mon, Mar 31, 2014 at 9:39 PM, Tharindu Amila Perera
<amilastbmmv at gmail.com> wrote:
> Hi Eike,
> Your reply is very helpful. I know basic c++ and programming but It's
> hard to go through a large code base. Thank you very much.
> On Mon, Mar 31, 2014 at 6:09 PM, Eike Rathke <erack at redhat.com> wrote:
>> Hi Tharindu,
>> On Sunday, 2014-03-30 11:13:13 +0530, Tharindu Amila Perera wrote:
>>> 1] ScTabViewShell::KeyInput as the starting point to capture the event
>>> the keyinput function decl is found at tabvwsh.hxx. But I cannot seem
>>> to find a place it has been used for reference.
>> "used" in the sense of where it is called? ScTabViewShell is derived
>> from SfxViewShell and the virtual KeyInput() method is called via the
>> sfx2 framework whenever a key is pressed.
>>> I would like to know which source file contains the code to handle
>>> keyboard events in a spreadsheet.
>> The actual code handling these key events is in
>> sc/source/ui/view/tabvwsh4.cxx ScTabViewShell::TabKeyInput()
>> LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
>> GPG key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
>> Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
> Thanks and regards,
> Tharindu Amila Perera
> Department of Computer Science & Engineering
> University of Moratuwa
Thanks and regards,
Tharindu Amila Perera
Department of Computer Science & Engineering
University of Moratuwa
More information about the LibreOffice