зеркало из https://github.com/mozilla/pjs.git
Turned on bug fix for #6896: Windows editorinterprets the period key as a forward delete.
This commit is contained in:
Родитель
cfb168188c
Коммит
7640929c5a
|
@ -181,7 +181,7 @@ nsEventStateManager::PostHandleEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
break;
|
||||
#ifndef tague_keyboard_patch
|
||||
#if 1
|
||||
case NS_KEY_DOWN:
|
||||
ret = DispatchKeyPressEvent(aPresContext, (nsKeyEvent*)aEvent, aStatus);
|
||||
if (nsEventStatus_eConsumeNoDefault != aStatus) {
|
||||
|
|
|
@ -105,7 +105,7 @@ nsTextEditorKeyListener::HandleEvent(nsIDOMEvent* aEvent)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
nsresult
|
||||
nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
|
@ -265,7 +265,7 @@ nsTextEditorKeyListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
|||
}
|
||||
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
nsresult
|
||||
nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
|
|
|
@ -105,7 +105,7 @@ nsTextEditorKeyListener::HandleEvent(nsIDOMEvent* aEvent)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
nsresult
|
||||
nsTextEditorKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
|
@ -265,7 +265,7 @@ nsTextEditorKeyListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
|||
}
|
||||
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
nsresult
|
||||
nsTextEditorKeyListener::KeyPress(nsIDOMEvent* aKeyEvent)
|
||||
{
|
||||
|
|
|
@ -181,7 +181,7 @@ nsEventStateManager::PostHandleEvent(nsIPresContext& aPresContext,
|
|||
}
|
||||
}
|
||||
break;
|
||||
#ifndef tague_keyboard_patch
|
||||
#if 1
|
||||
case NS_KEY_DOWN:
|
||||
ret = DispatchKeyPressEvent(aPresContext, (nsKeyEvent*)aEvent, aStatus);
|
||||
if (nsEventStatus_eConsumeNoDefault != aStatus) {
|
||||
|
|
|
@ -214,7 +214,7 @@ void UninitExposeEvent(GdkEventExpose *aGEE,
|
|||
|
||||
//==============================================================
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
PRUint32 nsConvertCharCodeToUnicode(gchar* gdkString)
|
||||
{
|
||||
//
|
||||
|
@ -625,7 +625,7 @@ void handle_scrollbar_value_changed(GtkAdjustment *adj, gpointer p)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
//==============================================================
|
||||
gint handle_key_release_event(GtkWidget *w, GdkEventKey* event, gpointer p)
|
||||
{
|
||||
|
|
|
@ -482,7 +482,7 @@ static PRUint32 ConvertMacToRaptorKeyCode(UInt32 eventMessage, UInt32 eventModif
|
|||
// HandleKeyEvent
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
void nsMacEventHandler::InitializeKeyEvent(nsKeyEvent& aKeyEvent, EventRecord& aOSEvent, nsWindow* focusedWidget, PRUint32 message)
|
||||
{
|
||||
//
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
virtual PRBool HandleUpdate(Handle textHandle,ScriptCode script,long fixedLength);
|
||||
|
||||
protected:
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
virtual void InitializeKeyEvent(nsKeyEvent& aKeyEvent, EventRecord& aOSEvent, nsWindow* focusedWidget, PRUint32 message);
|
||||
virtual PRBool IsSpecialRaptorKey(UInt32 macKeyCode);
|
||||
virtual void ConvertKeyEventToUnicode(nsKeyEvent& aKeyEvent,EventRecord& aOSEvent);
|
||||
|
|
|
@ -121,7 +121,7 @@ nsWindow::nsWindow() : nsBaseWidget()
|
|||
mIMECompositionStringSize = 0;
|
||||
mIMECompositionStringSize = 0;
|
||||
mIMECompositionUniString = NULL;
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
mHaveDBCSLeadByte = false;
|
||||
mDBCSLeadByte = '\0';
|
||||
#endif
|
||||
|
@ -1925,7 +1925,7 @@ ULONG nsWindow::IsSpecialChar(UINT aVirtualKeyCode, WORD *aAsciiKey)
|
|||
case VK_F10:
|
||||
case VK_F11:
|
||||
case VK_F12:
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
case VK_RETURN:
|
||||
case VK_BACK:
|
||||
#endif
|
||||
|
@ -2017,7 +2017,7 @@ BOOL TranslateToAscii(BYTE *aKeyState,
|
|||
//
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
BOOL nsWindow::OnKeyDown( UINT aVirtualKeyCode, UINT aScanCode)
|
||||
{
|
||||
WORD asciiKey;
|
||||
|
@ -2102,7 +2102,7 @@ BOOL nsWindow::OnKeyUp( UINT aVirtualKeyCode, UINT aScanCode)
|
|||
//
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
BOOL nsWindow::OnChar( UINT mbcsCharCode, UINT virtualKeyCode, bool isMultiByte )
|
||||
{
|
||||
wchar_t uniChar;
|
||||
|
@ -2260,7 +2260,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
case WM_PAINT:
|
||||
result = OnPaint();
|
||||
break;
|
||||
#ifdef tague_keyboard_patch
|
||||
#ifdef 1
|
||||
case WM_SYSCHAR:
|
||||
case WM_CHAR:
|
||||
{
|
||||
|
|
|
@ -170,7 +170,7 @@ protected:
|
|||
virtual PRBool OnPaint();
|
||||
virtual PRBool OnResize(nsRect &aWindowRect);
|
||||
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
BOOL OnChar(UINT mbcsCharCode, UINT virtualKeyCode, bool isMultibyte);
|
||||
#else
|
||||
BOOL OnChar(UINT aVirtualKeyCode);
|
||||
|
@ -236,7 +236,7 @@ protected:
|
|||
PRUnichar* mIMECompositionUniString;
|
||||
PRInt32 mIMECompositionStringLength;
|
||||
PRInt32 mIMECompositionStringSize;
|
||||
#ifdef tague_keyboard_patch
|
||||
#if 1
|
||||
BOOL mHaveDBCSLeadByte;
|
||||
unsigned char mDBCSLeadByte;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче