Capture backspace key in list mode (#1484566)
| | |
| | | - Respect Content-Location headers in multipart/related messages according to RFC2110 (#1484946) |
| | | - Applied mime_decode patch by David Lublink |
| | | - Allowed max. attachment size now indicated in compose screen (#1485030) |
| | | - Also capture backspace key in list mode (#1484566) |
| | | |
| | | 2008/09/04 (alec) |
| | | ---------- |
| | |
| | | this.command('show'); |
| | | else if (list.key_pressed == list.DELETE_KEY) |
| | | this.command('delete'); |
| | | else if (list.key_pressed == list.BACKSPACE_KEY) |
| | | this.command('delete'); |
| | | else |
| | | list.shiftkey = false; |
| | | }; |
| | |
| | | // static contants |
| | | this.ENTER_KEY = 13; |
| | | this.DELETE_KEY = 46; |
| | | this.BACKSPACE_KEY = 8; |
| | | |
| | | this.list = list ? list : null; |
| | | this.frame = null; |
| | |
| | | this.shiftkey = e.shiftKey; |
| | | this.key_pressed = keyCode; |
| | | this.trigger_event('keypress'); |
| | | |
| | | if (this.key_pressed == list.BACKSPACE_KEY) |
| | | return rcube_event.cancel(e); |
| | | } |
| | | |
| | | return true; |