mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 21:30:12 +03:00
Merge pull request #390 from JCDraffin/feature-readonly
Feature: Readonly support to editable text widgets
This commit is contained in:
commit
fb7ad07e6b
1 changed files with 2 additions and 0 deletions
|
@ -12214,6 +12214,8 @@ class TextDisplayHelper : Widget {
|
|||
});
|
||||
|
||||
this.addEventListener((scope CharEvent ce) {
|
||||
if(readonly)
|
||||
return;
|
||||
if(ce.character < 32 && ce.character != '\t' && ce.character != '\n' && ce.character != '\b')
|
||||
return; // skip the ctrl+x characters we don't care about as plain text
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue