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>
<tr data-bind="if: $root.config.connectDialog.token"> <tr data-bind="if: $root.config.connectDialog.token">
<td></td> <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>
<tr data-bind="if: $root.config.connectDialog.username"> <tr data-bind="if: $root.config.connectDialog.username">
<td>Username</td> <td>Username</td>

View file

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