1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

Improve KeyEvent a bit.

Now it has a text() which is what you'll usually want.
This commit is contained in:
Andreas Kling 2018-10-12 20:55:06 +02:00
parent fb4ae12bc2
commit b999a77d0f
6 changed files with 62 additions and 11 deletions

View file

@ -30,5 +30,6 @@ const CBitmap* Font::glyphBitmap(byte ch) const
const char* data = m_glyphs[(unsigned)ch - m_firstGlyph];
m_bitmaps[ch] = CBitmap::createFromASCII(data, m_glyphWidth, m_glyphHeight);
}
ASSERT(ch >= m_firstGlyph && ch <= m_lastGlyph);
return m_bitmaps[ch].ptr();
}