disable insert mode completely when !type
This commit is contained in:
parent
ffe2af611a
commit
6673afc8b7
|
@ -324,7 +324,6 @@ MD5() is deprecated as of OpenSSL 3.0, but this would also make it very
|
|||
easy to have LibreSSL compatibility.</li>
|
||||
<li>Image support: Ability to display icons, similar to rofi</li>
|
||||
<li>Text drawing: Use cairo for text drawing over Xft.</li>
|
||||
<li>Typing: Disable insert mode completely when !type</li>
|
||||
<li>Lines: Rofi-like newlines in the same entry
|
||||
<ul>
|
||||
<li>Just need to <code>XMoveResizeWindow()</code> as well as
|
||||
|
|
|
@ -127,7 +127,6 @@ is deprecated as of OpenSSL 3.0, but this would also make it very easy to
|
|||
have LibreSSL compatibility.
|
||||
- Image support: Ability to display icons, similar to rofi
|
||||
- Text drawing: Use cairo for text drawing over Xft.
|
||||
- Typing: Disable insert mode completely when !type
|
||||
- Lines: Rofi-like newlines in the same entry
|
||||
- Just need to `XMoveResizeWindow()` as well as `mh += bh` and `y += bh`
|
||||
for each added line.
|
||||
|
|
|
@ -468,9 +468,11 @@ void setprofile(Arg *arg) {
|
|||
|
||||
void switchmode(Arg *arg) {
|
||||
curMode = !curMode;
|
||||
|
||||
if (!type) curMode = 0; // only normal mode allowed
|
||||
|
||||
allowkeys = !curMode;
|
||||
|
||||
strncpy(modetext, curMode ? instext : normtext, 15);
|
||||
|
||||
drawmenu();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue