mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
make sure to clean all TextEntryPayloads after enter button has been pressed
This commit is contained in:
parent
5c975fdee4
commit
b541c56c7e
1 changed files with 5 additions and 2 deletions
|
|
@ -383,8 +383,11 @@ impl ActionApi for TextEntry {
|
|||
payloads.0[..self.max_field_amount as usize].copy_from_slice(&self.action_payloads[..self.max_field_amount as usize]);
|
||||
let buf = Buffer::into_buf(payloads).expect("couldn't convert message to payload");
|
||||
buf.send(self.action_conn, self.action_opcode).map(|_| ()).expect("couldn't send action message");
|
||||
payload.volatile_clear(); // ensure the local copy of text is zero'd out
|
||||
// TODO: zero out EVERYTHING here!
|
||||
|
||||
for payload in self.action_payloads.iter_mut() {
|
||||
payload.volatile_clear();
|
||||
}
|
||||
|
||||
return (None, true)
|
||||
}
|
||||
'↑' => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue