Send messages from the Spelling panel down to the responder chain of the

main window only, to avoid spell checking the panel's own text field.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29640 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2010-02-15 11:44:03 +00:00
parent e541ba3bc3
commit 90b24848cc
2 changed files with 15 additions and 9 deletions

View file

@ -1,3 +1,9 @@
2010-02-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSSpellChecker.m (_findNext:, _ignore:, _correct:): Send
messages down to the responder chain of the main window only, to
avoid spell checking the Spelling panel's own text field.
2010-02-15 Wolfgang Lux <wolfgang.lux@gmail.com> 2010-02-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:): * Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):

View file

@ -534,9 +534,9 @@ inSpellDocumentWithTag:(int)tag
- _findNext: (id)sender - _findNext: (id)sender
{ {
BOOL processed = [NSApp sendAction: @selector(checkSpelling:) BOOL processed = [[[NSApp mainWindow] firstResponder]
to: nil tryToPerform: @selector(checkSpelling:)
from: _spellPanel]; with: _spellPanel];
if (!processed) if (!processed)
{ {
@ -593,9 +593,9 @@ inSpellDocumentWithTag:(int)tag
- _ignore: (id)sender - _ignore: (id)sender
{ {
BOOL processed = [NSApp sendAction: @selector(ignoreSpelling:) BOOL processed = [[[NSApp mainWindow] firstResponder]
to: nil tryToPerform: @selector(ignoreSpelling:)
from: _wordField]; with: _wordField];
if (!processed) if (!processed)
{ {
@ -616,9 +616,9 @@ inSpellDocumentWithTag:(int)tag
- _correct: (id)sender - _correct: (id)sender
{ {
BOOL processed = [NSApp sendAction: @selector(changeSpelling:) BOOL processed = [[[NSApp mainWindow] firstResponder]
to: nil tryToPerform: @selector(changeSpelling:)
from: _wordField]; with: _wordField];
if (!processed) if (!processed)
{ {