1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-08-08 16:11:29 +00:00
parent b804879ed5
commit 5b1f5d6bfb
2 changed files with 4 additions and 4 deletions

View file

@ -1883,7 +1883,7 @@ bool TextEditor::keyPressed (const KeyPress& key)
moveCursorTo (getTotalNumChars(), false);
moveCursorTo (0, true);
}
else if (key.isKeyCode (KeyPress::returnKey))
else if (key == KeyPress::returnKey)
{
if (! isReadOnly())
{

View file

@ -57,8 +57,8 @@ public:
/** Creates a KeyPress for a key and some modifiers.
e.g.
CTRL+C would be: KeyPress ('c', Modifiers::ctrlModifier)
SHIFT+Escape would be: KeyPress (KeyPress::escapeKey, Modifiers::shiftModifier)
CTRL+C would be: KeyPress ('c', ModifierKeys::ctrlModifier)
SHIFT+Escape would be: KeyPress (KeyPress::escapeKey, ModifierKeys::shiftModifier)
@param keyCode a code that represents the key - this value must be
one of special constants listed in this class, or an
@ -110,7 +110,7 @@ public:
/** Returns the key modifiers.
@see Modifiers
@see ModifierKeys
*/
const ModifierKeys getModifiers() const throw() { return mods; }