diff options
Diffstat (limited to 'vcl/unx/generic/app/saldisp.cxx')
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 908d8cefc027..ee922853686c 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -707,18 +707,18 @@ void SalDisplay::SimulateKeyPress( sal_uInt16 nKeyCode ) } } -sal_uInt16 SalDisplay::GetIndicatorState() const +KeyIndicatorState SalDisplay::GetIndicatorState() const { unsigned int _state = 0; - sal_uInt16 nState = 0; + KeyIndicatorState nState = KeyIndicatorState::NONE; XkbGetIndicatorState(pDisp_, XkbUseCoreKbd, &_state); if ((_state & 0x00000001)) - nState |= INDICATOR_CAPSLOCK; + nState |= KeyIndicatorState::CAPSLOCK; if ((_state & 0x00000002)) - nState |= INDICATOR_NUMLOCK; + nState |= KeyIndicatorState::NUMLOCK; if ((_state & 0x00000004)) - nState |= INDICATOR_SCROLLLOCK; + nState |= KeyIndicatorState::SCROLLLOCK; return nState; } |