Page 2 of 3

Posted: Sun Aug 07, 2005 9:49 pm
by Aaron
well leaf was talking about alt+up arrowing, so i was just figuring out if this is an outside textbox or inside textbox thing. so then just plain up would work, and we could ignore leafs comment... :-D

Posted: Sun Aug 07, 2005 11:32 pm
by Rednaxela
Or another option could be implimented as a client side command or something like that, when players could keybind it however they wished.
well leaf was talking about alt+up arrowing, so i was just figuring out if this is an outside textbox or inside textbox thing. so then just plain up would work, and we could ignore leafs comment
Indeed

Posted: Sun Aug 07, 2005 11:57 pm
by Aaron
sounds better. but i think that it should be default binded to up arrow. but how would you make a keybinging for textbox only?

Posted: Mon Aug 08, 2005 3:34 am
by Arekusanderu
Aaron wrote:sounds better. but i think that it should be default binded to up arrow. but how would you make a keybinging for textbox only?
New commands: 'bindt, allows you to cause a non-text-applicable key to bind to a command; say, 'bindt chat, then tap the pageup key. Then, whenever you tap pageup WHILE IN THE TEXTBOX, normal pageup bind remains, it will put chat in the textbox. Also, when the command 'last, is entered, it calls the most recent command to the box. If the command in the box is highlighted and 'last, is entered in its place, the next place back in history is retrieved. Thus, 'last, is the default bindt to uparrow and can be used recursively.

Posted: Mon Aug 08, 2005 2:27 pm
by Aaron
that sounds good. how hard will it be to implement? or maybe just chain ['] + [up] keys?

Posted: Thu Aug 11, 2005 1:11 am
by cavesomething
I already have up and down arrows bound to scrolling through the client's command history, have had for a while.

There is some magic words you need to add to your ~/.crossfire/keys file, I believe it is these lines that you want.

! nextkey Down 0
! prevkey Up 0

With this setup up and down arrow keys go through history, and numberpad is for moving around. (this setup probably isn't suitable for laptops).

Posted: Thu Aug 11, 2005 4:02 am
by Arekusanderu
cavesomething wrote:I already have up and down arrows bound to scrolling through the client's command history, have had for a while.

There is some magic words you need to add to your ~/.crossfire/keys file, I believe it is these lines that you want.

! nextkey Down 0
! prevkey Up 0

With this setup up and down arrow keys go through history, and numberpad is for moving around. (this setup probably isn't suitable for laptops).
Will

! nextkey ] 0
! prevkey [ 0

work as well? That would be awesome, I hope it does.

Posted: Thu Aug 11, 2005 12:26 pm
by cavesomething
I believe it should although I don't know whether that is the correct name for the key, so if it doesn't work you may need to look that up.

Posted: Wed Aug 17, 2005 3:38 pm
by poof
cavesomething wrote:... There is some magic words you need to add to your ~/.crossfire/keys file, I believe it is these lines that you want.

! nextkey Down 0
! prevkey Up 0

With this setup up and down arrow keys go through history, and numberpad is for moving around. (this setup probably isn't suitable for laptops).
Hmmm, I don't have my [Page Up] and [Page Down] keys bound to anything. Wonder what to put after nextkey and prevkey to use those ...

Posted: Wed Aug 17, 2005 3:50 pm
by Rednaxela
This reminds me, an interesting feature to add would be support for seperate keybindings for non-printing keys that are pressed while typing in the text box. (i.e. so one could bind prevkey and nextkey to the up and down arrow keys, but only while the textbox has focus)