Mercurial > cgi-bin > hgweb.cgi > PassMan
comparison src/main/kotlin/name/blackcap/passman/Clipboard.kt @ 2:3c792ad36b3d
Can now update a password and read it back.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 11 Sep 2022 18:24:55 -0700 |
parents | a6cfdffcaa94 |
children |
comparison
equal
deleted
inserted
replaced
1:8aacca5c2d53 | 2:3c792ad36b3d |
---|---|
29 override fun lostOwnership(clipboard: Clipboard?, contents: Transferable?) { | 29 override fun lostOwnership(clipboard: Clipboard?, contents: Transferable?) { |
30 /* we don't care */ | 30 /* we don't care */ |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 /* xxx: this often makes a string out of a password */ | 34 /* XXX: This will make a string out of a password. Shikata ga nai. */ |
35 fun writeToClipboard(charArray: CharArray) { | 35 fun writeToClipboard(charArray: CharArray) { |
36 CLIPBOARD.setContents(ClipboardData(String(charArray)), ClipboardOwner()) | 36 CLIPBOARD.setContents(ClipboardData(String(charArray)), ClipboardOwner()) |
37 } | 37 } |
38 | 38 |
39 fun writeToClipboard(string: String) { | 39 fun writeToClipboard(string: String) { |