mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Added methods to Label and TextEditor to specify the type of virtual keyboard they require.
This commit is contained in:
parent
dc79ef6094
commit
ac8bc1a7b4
5 changed files with 25 additions and 11 deletions
|
|
@ -921,6 +921,7 @@ TextEditor::TextEditor (const String& name,
|
|||
totalNumChars (0),
|
||||
caretPosition (0),
|
||||
passwordCharacter (passwordChar),
|
||||
keyboardType (TextInputTarget::textKeyboard),
|
||||
dragType (notDragging)
|
||||
{
|
||||
setOpaque (true);
|
||||
|
|
@ -1292,8 +1293,8 @@ void TextEditor::moveCaret (int newCaretPos)
|
|||
{
|
||||
if (newCaretPos < 0)
|
||||
newCaretPos = 0;
|
||||
else if (newCaretPos > getTotalNumChars())
|
||||
newCaretPos = getTotalNumChars();
|
||||
else
|
||||
newCaretPos = jmin (newCaretPos, getTotalNumChars());
|
||||
|
||||
if (newCaretPos != getCaretPosition())
|
||||
{
|
||||
|
|
@ -2128,7 +2129,7 @@ void TextEditor::enablementChanged()
|
|||
repaint();
|
||||
}
|
||||
|
||||
void TextEditor::setTemporaryUnderlining (const Array <Range<int> >& newUnderlinedSections)
|
||||
void TextEditor::setTemporaryUnderlining (const Array<Range<int> >& newUnderlinedSections)
|
||||
{
|
||||
underlinedSections = newUnderlinedSections;
|
||||
repaint();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue