Skip to content

Commit 84df16f

Browse files
committed
ui: Add ability to use shift and xshift for transalpha
It is not possible to shift or double shift before using transalpha in order to get the extra characters. Note that the order matters, you need to set the shift first. Signed-off-by: Christophe de Dinechin <[email protected]>
1 parent 0f63d6a commit 84df16f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/user_interface.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ bool user_interface::key(int key, bool repeating, bool talpha)
673673
if (rt.editing())
674674
update_mode();
675675

676-
if (!skey && last != KEY_SHIFT)
676+
if (!skey && last != KEY_SHIFT && !transalpha)
677677
{
678678
shift = false;
679679
xshift = false;
@@ -4120,6 +4120,10 @@ bool user_interface::noHelpForKey(int key)
41204120
return true;
41214121
}
41224122

4123+
// No help for shifted UP/DOWN (history, edit, etc)
4124+
if (key == KEY_UP || key == KEY_DOWN)
4125+
return true;
4126+
41234127
// Other cases are regular functions, we can display help
41244128
return false;
41254129
}

0 commit comments

Comments
 (0)