Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d519c312
Kaydet (Commit)
d519c312
authored
Kas 06, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename KEY_MODTYPE to KEY_MODIFIERS_MASK
Change-Id: I7948988e4fd89bf94a98afee15298cd33e2a4d06
üst
6efb46c6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
comboboxtoolbarcontroller.cxx
framework/source/uielement/comboboxtoolbarcontroller.cxx
+1
-1
dropdownboxtoolbarcontroller.cxx
framework/source/uielement/dropdownboxtoolbarcontroller.cxx
+1
-1
rsc-vcl-shared-types.hxx
include/rsc/rsc-vcl-shared-types.hxx
+6
-6
keycod.hxx
include/vcl/keycod.hxx
+2
-2
salframe.cxx
vcl/osx/salframe.cxx
+1
-1
debugevent.cxx
vcl/source/window/debugevent.cxx
+3
-3
No files found.
framework/source/uielement/comboboxtoolbarcontroller.cxx
Dosyayı görüntüle @
d519c312
...
...
@@ -190,7 +190,7 @@ void ComboboxToolbarController::Select()
{
vcl
::
Window
::
PointerState
aState
=
m_pComboBox
->
GetPointerState
();
sal_uInt16
nKeyModifier
=
sal_uInt16
(
aState
.
mnState
&
KEY_MOD
TYPE
);
sal_uInt16
nKeyModifier
=
sal_uInt16
(
aState
.
mnState
&
KEY_MOD
IFIERS_MASK
);
execute
(
nKeyModifier
);
}
}
...
...
framework/source/uielement/dropdownboxtoolbarcontroller.cxx
Dosyayı görüntüle @
d519c312
...
...
@@ -174,7 +174,7 @@ void DropdownToolbarController::Select()
{
vcl
::
Window
::
PointerState
aState
=
m_pListBoxControl
->
GetPointerState
();
sal_uInt16
nKeyModifier
=
sal_uInt16
(
aState
.
mnState
&
KEY_MOD
TYPE
);
sal_uInt16
nKeyModifier
=
sal_uInt16
(
aState
.
mnState
&
KEY_MOD
IFIERS_MASK
);
execute
(
nKeyModifier
);
}
}
...
...
include/rsc/rsc-vcl-shared-types.hxx
Dosyayı görüntüle @
d519c312
...
...
@@ -134,14 +134,14 @@ namespace o3tl
template
<>
struct
typed_flags
<
WindowBorderStyle
>
:
is_typed_flags
<
WindowBorderStyle
,
0x3033
>
{};
}
#define KEY_CODE
((sal_uInt16)0x0FFF)
#define KEY_CODE
_MASK
((sal_uInt16)0x0FFF)
// Modifier-Tasten
#define KEY_SHIFT ((sal_uInt16)0x1000)
#define KEY_MOD1 ((sal_uInt16)0x2000)
#define KEY_MOD2 ((sal_uInt16)0x4000)
#define KEY_MOD3 ((sal_uInt16)0x8000)
#define KEY_MOD
TYPE
((sal_uInt16)0xF000)
#define KEY_SHIFT
((sal_uInt16)0x1000)
#define KEY_MOD1
((sal_uInt16)0x2000)
#define KEY_MOD2
((sal_uInt16)0x4000)
#define KEY_MOD3
((sal_uInt16)0x8000)
#define KEY_MOD
IFIERS_MASK
((sal_uInt16)0xF000)
#endif
...
...
include/vcl/keycod.hxx
Dosyayı görüntüle @
d519c312
...
...
@@ -48,10 +48,10 @@ public:
KeyFuncType
GetFullFunction
()
const
{
return
eFunc
;
}
sal_uInt16
GetCode
()
const
{
return
(
nKeyCodeAndModifiers
&
KEY_CODE
);
}
{
return
(
nKeyCodeAndModifiers
&
KEY_CODE
_MASK
);
}
sal_uInt16
GetModifier
()
const
{
return
(
nKeyCodeAndModifiers
&
KEY_MOD
TYPE
);
}
{
return
(
nKeyCodeAndModifiers
&
KEY_MOD
IFIERS_MASK
);
}
bool
IsShift
()
const
{
return
((
nKeyCodeAndModifiers
&
KEY_SHIFT
)
!=
0
);
}
bool
IsMod1
()
const
...
...
vcl/osx/salframe.cxx
Dosyayı görüntüle @
d519c312
...
...
@@ -1007,7 +1007,7 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
OUStringBuffer
aResult
(
16
);
sal_uInt16
nUnmodifiedCode
=
(
nKeyCode
&
KEY_CODE
);
sal_uInt16
nUnmodifiedCode
=
(
nKeyCode
&
KEY_CODE
_MASK
);
std
::
map
<
sal_uInt16
,
OUString
>::
const_iterator
it
=
aKeyMap
.
find
(
nUnmodifiedCode
);
if
(
it
!=
aKeyMap
.
end
()
)
{
...
...
vcl/source/window/debugevent.cxx
Dosyayı görüntüle @
d519c312
...
...
@@ -140,7 +140,7 @@ void DebugEventInjector::InjectTextEvent()
if
(
getRandom
()
<
0.10
)
// Occasionally a truly random event
{
aKeyEvent
.
mnCode
=
getRandom
()
*
KEY_CODE
;
aKeyEvent
.
mnCode
=
getRandom
()
*
KEY_CODE
_MASK
;
aKeyEvent
.
mnCharCode
=
getRandom
()
*
0xffff
;
}
else
...
...
@@ -162,7 +162,7 @@ void DebugEventInjector::InjectTextEvent()
}
if
(
getRandom
()
<
0.05
)
// modifier
aKeyEvent
.
mnCode
|=
(
sal_uInt16
)(
getRandom
()
*
KEY_MOD
TYPE
)
&
KEY_MODTYPE
;
aKeyEvent
.
mnCode
|=
(
sal_uInt16
)(
getRandom
()
*
KEY_MOD
IFIERS_MASK
)
&
KEY_MODIFIERS_MASK
;
bool
bHandled
=
ImplWindowFrameProc
(
pWindow
,
NULL
,
SALEVENT_KEYINPUT
,
&
aKeyEvent
);
...
...
@@ -244,7 +244,7 @@ void DebugEventInjector::InjectKeyNavEdit()
aKeyEvent
.
mnCode
=
nKey
;
if
(
getRandom
()
<
0.15
)
// modifier
aKeyEvent
.
mnCode
|=
(
sal_uInt16
)(
getRandom
()
*
KEY_MOD
TYPE
)
&
KEY_MODTYPE
;
aKeyEvent
.
mnCode
|=
(
sal_uInt16
)(
getRandom
()
*
KEY_MOD
IFIERS_MASK
)
&
KEY_MODIFIERS_MASK
;
aKeyEvent
.
mnCharCode
=
0x0
;
// hopefully unused.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment