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
fca89aea
Kaydet (Commit)
fca89aea
authored
Ock 12, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: add LibreOfficeKitKeyEventType enumeration
Change-Id: I3d422670323cd982251569c4226dc46803d4f6a1
üst
08d71117
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
init.cxx
desktop/source/lib/init.cxx
+7
-2
LibreOfficeKit.h
include/LibreOfficeKit/LibreOfficeKit.h
+9
-0
gtktiledviewer.cxx
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
+2
-2
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
fca89aea
...
@@ -657,10 +657,15 @@ static void lo_postKeyEvent(LibreOfficeKit* /*pThis*/, int nType, int nCode)
...
@@ -657,10 +657,15 @@ static void lo_postKeyEvent(LibreOfficeKit* /*pThis*/, int nType, int nCode)
if
(
SalFrame
*
pFocus
=
SvpSalFrame
::
GetFocusFrame
())
if
(
SalFrame
*
pFocus
=
SvpSalFrame
::
GetFocusFrame
())
{
{
KeyEvent
aEvent
(
nCode
,
nCode
,
0
);
KeyEvent
aEvent
(
nCode
,
nCode
,
0
);
if
(
nType
==
0
)
switch
(
nType
)
{
case
LOK_KEYEVENT_KEYINPUT
:
Application
::
PostKeyEvent
(
VCLEVENT_WINDOW_KEYINPUT
,
pFocus
->
GetWindow
(),
&
aEvent
);
Application
::
PostKeyEvent
(
VCLEVENT_WINDOW_KEYINPUT
,
pFocus
->
GetWindow
(),
&
aEvent
);
else
break
;
case
LOK_KEYEVENT_KEYUP
:
Application
::
PostKeyEvent
(
VCLEVENT_WINDOW_KEYUP
,
pFocus
->
GetWindow
(),
&
aEvent
);
Application
::
PostKeyEvent
(
VCLEVENT_WINDOW_KEYUP
,
pFocus
->
GetWindow
(),
&
aEvent
);
break
;
}
}
}
#endif
#endif
}
}
...
...
include/LibreOfficeKit/LibreOfficeKit.h
Dosyayı görüntüle @
fca89aea
...
@@ -64,6 +64,15 @@ typedef enum
...
@@ -64,6 +64,15 @@ typedef enum
}
}
LibreOfficeKitCallbackType
;
LibreOfficeKitCallbackType
;
typedef
enum
{
/// A key on the keyboard is pressed.
LOK_KEYEVENT_KEYINPUT
,
/// A key on the keyboard is released.
LOK_KEYEVENT_KEYUP
}
LibreOfficeKitKeyEventType
;
typedef
void
(
*
LibreOfficeKitCallback
)(
int
nType
,
const
char
*
pPayload
,
void
*
pData
);
typedef
void
(
*
LibreOfficeKitCallback
)(
int
nType
,
const
char
*
pPayload
,
void
*
pData
);
#endif // LOK_USE_UNSTABLE_API
#endif // LOK_USE_UNSTABLE_API
...
...
libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
Dosyayı görüntüle @
fca89aea
...
@@ -130,9 +130,9 @@ static void signalKey(GtkWidget* /*pWidget*/, GdkEventKey* pEvent, gpointer /*pD
...
@@ -130,9 +130,9 @@ static void signalKey(GtkWidget* /*pWidget*/, GdkEventKey* pEvent, gpointer /*pD
LOKDocView
*
pLOKDocView
=
LOK_DOCVIEW
(
pDocView
);
LOKDocView
*
pLOKDocView
=
LOK_DOCVIEW
(
pDocView
);
if
(
pEvent
->
type
==
GDK_KEY_RELEASE
)
if
(
pEvent
->
type
==
GDK_KEY_RELEASE
)
pLOKDocView
->
pOffice
->
pClass
->
postKeyEvent
(
pLOKDocView
->
pOffice
,
1
,
gdk_keyval_to_unicode
(
pEvent
->
keyval
));
pLOKDocView
->
pOffice
->
pClass
->
postKeyEvent
(
pLOKDocView
->
pOffice
,
LOK_KEYEVENT_KEYUP
,
gdk_keyval_to_unicode
(
pEvent
->
keyval
));
else
else
pLOKDocView
->
pOffice
->
pClass
->
postKeyEvent
(
pLOKDocView
->
pOffice
,
0
,
gdk_keyval_to_unicode
(
pEvent
->
keyval
));
pLOKDocView
->
pOffice
->
pClass
->
postKeyEvent
(
pLOKDocView
->
pOffice
,
LOK_KEYEVENT_KEYINPUT
,
gdk_keyval_to_unicode
(
pEvent
->
keyval
));
}
}
// GtkComboBox requires gtk 2.24 or later
// GtkComboBox requires gtk 2.24 or later
...
...
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