Make ctrl+g focus text windows and cycle zeroxed copies (thanks kvik)
This commit is contained in:
parent
7682a24bc5
commit
9314883aff
3 changed files with 23 additions and 1 deletions
|
@ -723,6 +723,9 @@ since the last mouse button hit.
|
||||||
.PP
|
.PP
|
||||||
Ctrl+b switches to the command window and moves to the end
|
Ctrl+b switches to the command window and moves to the end
|
||||||
of the text.
|
of the text.
|
||||||
|
Ctrl+g switches from to the last focused window.
|
||||||
|
If the focused window is a text window, ctrl+g switches
|
||||||
|
to the next zeroxed instance of that window.
|
||||||
.PP
|
.PP
|
||||||
The button 3 menu controls window operations.
|
The button 3 menu controls window operations.
|
||||||
The top of the menu
|
The top of the menu
|
||||||
|
|
|
@ -485,6 +485,7 @@ nontypingkey(int c)
|
||||||
case Ksoh:
|
case Ksoh:
|
||||||
case Kenq:
|
case Kenq:
|
||||||
case Kstx:
|
case Kstx:
|
||||||
|
case Kbel:
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -658,6 +659,22 @@ type(Flayer *l, int res) /* what a bloody mess this is */
|
||||||
a = t->rasp.nrunes;
|
a = t->rasp.nrunes;
|
||||||
flsetselect(l, a, a);
|
flsetselect(l, a, a);
|
||||||
center(l, a);
|
center(l, a);
|
||||||
|
}else if(c == Kbel){
|
||||||
|
int i;
|
||||||
|
if(work == nil)
|
||||||
|
return;
|
||||||
|
if(which != work){
|
||||||
|
current(work);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
t = (Text*)work->user1;
|
||||||
|
l = &t->l[t->front];
|
||||||
|
for(i=t->front; t->nwin>1 && (i = (i+1)%NL) != t->front; )
|
||||||
|
if(t->l[i].textfn != 0){
|
||||||
|
l = &t->l[i];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
current(l);
|
||||||
}else{
|
}else{
|
||||||
if(c==Kesc && typeesc>=0){
|
if(c==Kesc && typeesc>=0){
|
||||||
l->p0 = typeesc;
|
l->p0 = typeesc;
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
enum{
|
enum{
|
||||||
Up,
|
Up,
|
||||||
Down
|
Down,
|
||||||
|
|
||||||
|
Kbel=0x7,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct Text Text;
|
typedef struct Text Text;
|
||||||
|
|
Loading…
Reference in a new issue