remove attempt to bind deletetoken event to del key

This commit is contained in:
encrypt 2020-03-26 18:20:48 +01:00
parent c54cf56a7b
commit e721e66e24
2 changed files with 1 additions and 6 deletions

View file

@ -55,7 +55,7 @@
</tr>
<tr data-bind="if: $root.config.connectDialog.token">
<td></td>
<td><select id="token" multiple="multiple" height="5" data-bind="options:tokens, selectedOptions:selectedTokens, valueUpdate: 'afterkeydown', event: { keypress: $root.config.connectDialog.deleteSelectedTokensKey}"></select></td>
<td><select id="token" multiple="multiple" height="5" data-bind="options:tokens, selectedOptions:selectedTokens"></select></td>
</tr>
<tr data-bind="if: $root.config.connectDialog.username">
<td>Username</td>

View file

@ -74,11 +74,6 @@ function ConnectDialog () {
self.tokenToAdd("")
}
self.removeSelectedTokensKey = function(data, event) {
if (event.keyCode == 46) {
self.removeSelectedTokens()
}
}
self.removeSelectedTokens = function() {
this.tokens.removeAll(this.selectedTokens())
this.selectedTokens([])