[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/widgets
From:       Andreas Hartmetz <ahartmetz () gmail ! com>
Date:       2007-09-07 17:43:19
Message-ID: 1189186999.173173.28043.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 709514 by ahartmetz:

clarify documentation, tune the effect of setModifierlessAllowed() for standard text \
editing/itemview situations

 M  +1 -0      kkeysequencewidget.cpp  
 M  +5 -4      kkeysequencewidget.h  


--- trunk/KDE/kdelibs/kdeui/widgets/kkeysequencewidget.cpp #709513:709514
@@ -415,6 +415,7 @@
 	case Qt::Key_Tab:
 	case Qt::Key_Backtab: //does this ever happen?
 	case Qt::Key_Backspace:
+	case Qt::Key_Delete:
 		return false;
 	default:
 		return true;
--- trunk/KDE/kdelibs/kdeui/widgets/kkeysequencewidget.h #709513:709514
@@ -64,15 +64,16 @@
 	virtual ~KKeySequenceWidget();
 
 	/**
-	 * Set whether to accept plain letter or symbol keys without modifiers like Ctrl, \
                Alt, Meta.
-	 * "Special" keys like F1, Insert, PageDown will always work.
 	 * This only applies to user input, not to setShortcut().
+	 * Set whether to accept "plain" keys without modifiers (like Ctrl, Alt, Meta).
+	 * Plain keys by our definition include letter and symbol keys and
+	 * text editing keys (Return, Space, Tab, Backspace, Delete).
+	 * "Special" keys like F1, Cursor keys, Insert, PageDown will always work.
 	 */
 	void setModifierlessAllowed(bool allow);
 
 	/**
-	 * Return if the widget accepts plain letter or symbol keys without modifiers like \
                Ctrl, Alt, Meta.
-	 * "Special" keys like F1, Insert and so on will always work.
+	 * @see setModifierlessAllowed()
 	 */
 	bool isModifierlessAllowed();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic