StyledEdit: disallow most "control chars".
We still need/want TAB and ENTER.
Stuff like CTRL+{a,d,h,i,j,k,l} continues to function just as before (AFAICS).
Change-Id: I46151e70c61ef2b941bed4e2ee54ef198400ae53
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8966
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
9c84d9aaeb
commit
2dadc7bc29
@@ -42,6 +42,12 @@ StyledEditView::StyledEditView(BRect viewFrame, BRect textBounds,
|
|||||||
|
|
||||||
fMessenger = new BMessenger(handler);
|
fMessenger = new BMessenger(handler);
|
||||||
fSuppressChanges = false;
|
fSuppressChanges = false;
|
||||||
|
|
||||||
|
// disallow most control characters
|
||||||
|
for (uint32 i = 0; i < B_SPACE; ++i) {
|
||||||
|
if (i != B_TAB && i != B_ENTER)
|
||||||
|
this->DisallowChar(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user