mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 10:01:14 +00:00
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:
parent
2de8153b43
commit
976f23a3b3
2 changed files with 15 additions and 9 deletions
|
@ -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>
|
||||
|
||||
* Source/NSTextView.m (-setSelectedRange:affinity:stillSelecting:):
|
||||
|
|
|
@ -534,9 +534,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _findNext: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(checkSpelling:)
|
||||
to: nil
|
||||
from: _spellPanel];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(checkSpelling:)
|
||||
with: _spellPanel];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
@ -593,9 +593,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _ignore: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(ignoreSpelling:)
|
||||
to: nil
|
||||
from: _wordField];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(ignoreSpelling:)
|
||||
with: _wordField];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
@ -616,9 +616,9 @@ inSpellDocumentWithTag:(int)tag
|
|||
|
||||
- _correct: (id)sender
|
||||
{
|
||||
BOOL processed = [NSApp sendAction: @selector(changeSpelling:)
|
||||
to: nil
|
||||
from: _wordField];
|
||||
BOOL processed = [[[NSApp mainWindow] firstResponder]
|
||||
tryToPerform: @selector(changeSpelling:)
|
||||
with: _wordField];
|
||||
|
||||
if (!processed)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue