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
859f2886
Kaydet (Commit)
859f2886
authored
May 16, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make nospace edit not allow space in numbers only mode
Change-Id: Ie20dacb14b89d872045e58c84d4bf7804f4bee35
üst
545e810d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
optinet2.cxx
cui/source/options/optinet2.cxx
+5
-7
No files found.
cui/source/options/optinet2.cxx
Dosyayı görüntüle @
859f2886
...
...
@@ -106,22 +106,20 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxNoSpaceEdit(Window *pPar
void
SvxNoSpaceEdit
::
KeyInput
(
const
KeyEvent
&
rKEvent
)
{
if
(
bOnlyNumeric
)
bool
bValid
=
rKEvent
.
GetKeyCode
().
GetCode
()
!=
KEY_SPACE
;
if
(
bValid
&&
bOnlyNumeric
)
{
const
KeyCode
&
rKeyCode
=
rKEvent
.
GetKeyCode
();
sal_uInt16
nGroup
=
rKeyCode
.
GetGroup
();
sal_uInt16
nKey
=
rKeyCode
.
GetCode
();
sal_Bool
bValid
=
(
KEYGROUP_NUM
==
nGroup
||
KEYGROUP_CURSOR
==
nGroup
||
(
KEYGROUP_MISC
==
nGroup
&&
(
nKey
<
KEY_ADD
||
nKey
>
KEY_EQUAL
)
)
);
bValid
=
(
KEYGROUP_NUM
==
nGroup
||
KEYGROUP_CURSOR
==
nGroup
||
(
KEYGROUP_MISC
==
nGroup
&&
(
nKey
<
KEY_ADD
||
nKey
>
KEY_EQUAL
)
)
);
if
(
!
bValid
&&
(
rKeyCode
.
IsMod1
()
&&
(
KEY_A
==
nKey
||
KEY_C
==
nKey
||
KEY_V
==
nKey
||
KEY_X
==
nKey
||
KEY_Z
==
nKey
)
)
)
// Erase, Copy, Paste, Select All und Undo soll funktionieren
bValid
=
sal_True
;
if
(
bValid
)
Edit
::
KeyInput
(
rKEvent
);
}
else
if
(
rKEvent
.
GetKeyCode
().
GetCode
()
!=
KEY_SPACE
)
if
(
bValid
)
Edit
::
KeyInput
(
rKEvent
);
}
...
...
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