]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Implement standards-compliant chat input editing functionality
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jun 2020 03:21:08 +0000 (03:21 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jun 2020 03:21:08 +0000 (03:21 +0000)
commitd0c3037e2e74a1df265131a8b1b82c70011a0da2
treef54ffe9839c7ce2422a3a5154cabedecdcd3d332
parent7064ec812ec9ee7ee1e2485416ba8bacc10868db
Implement standards-compliant chat input editing functionality

Contributed by terencehill.

This, among other things, implements Key_Parse_CommonKeys, which
replaces Key_Console and unifies key handling code.

It's now possible to:
* move cursor to an arbitrary position with rightarrow/leftarrow and insert text
* paste text with ctrl-v
* enable insert mode with the Insert key
* clear the whole message with ctrl-u
* move to the beginning/end of the message with home/end
* move to the previous/next word with ctrl-rightarrow/leftarrow
* move to the previous/next character ignoring colors with shift-rightarrow/leftarrow

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12754 d7cf8633-e32d-0410-b094-e92efae38249
console.c
console.h
keys.c
keys.h