mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
Add support for backtab character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31026 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7c984daa0b
commit
7957a90007
5 changed files with 33 additions and 3 deletions
|
@ -2585,7 +2585,7 @@ static SEL getSel;
|
|||
unsigned int modifiers = [theEvent modifierFlags];
|
||||
int i;
|
||||
unsigned int relevantModifiersMask = NSCommandKeyMask | NSAlternateKeyMask | NSControlKeyMask;
|
||||
unichar key = ([keyEquivalent length] > 0 ? [keyEquivalent characterAtIndex:0] : 0);
|
||||
|
||||
/* Take shift key into account only for control keys and arrow and function keys */
|
||||
if ((modifiers & NSFunctionKeyMask)
|
||||
|| ([keyEquivalent length] > 0 && [[NSCharacterSet controlCharacterSet] characterIsMember:[keyEquivalent characterAtIndex:0]]))
|
||||
|
@ -3727,6 +3727,15 @@ static SEL getSel;
|
|||
}
|
||||
return;
|
||||
|
||||
case NSBackTabCharacter:
|
||||
if (_tabKeyTraversesCells)
|
||||
{
|
||||
if ([self _selectNextSelectableCellAfterRow: _selectedRow
|
||||
column: _selectedColumn])
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
||||
case NSTabCharacter:
|
||||
if (_tabKeyTraversesCells)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue