Skip to content

Commit f61f61d

Browse files
committed
velocity flag to disable this while we sort it out
1 parent ef96e22 commit f61f61d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/features.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,14 @@
177177
</alwaysEnabledBrandingTokens>
178178
</feature>
179179

180+
<feature>
181+
<name>Feature_KepadModeEnabled</name>
182+
<description>Enables the DECKPAM, DECKPNM sequences to work as intended </description>
183+
<id>16654</id>
184+
<stage>AlwaysDisabled</stage>
185+
<alwaysEnabledBrandingTokens>
186+
<brandingToken>Dev</brandingToken>
187+
</alwaysEnabledBrandingTokens>
188+
</feature>
189+
180190
</featureStaging>

src/terminal/input/terminalInput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ try
441441
// the ASCII character assigned by the keyboard layout, but when set
442442
// they transmit SS3 escape sequences. When used with a modifier, the
443443
// modifier is embedded as a parameter value (not standard).
444-
if (_inputMode.test(Mode::Keypad))
444+
if (_inputMode.test(Mode::Keypad) && Feature_KepadModeEnabled::IsEnabled())
445445
{
446446
defineNumericKey(VK_MULTIPLY, L'j');
447447
defineNumericKey(VK_ADD, L'k');
@@ -493,7 +493,7 @@ try
493493

494494
// Keypad keys also depend on Keypad mode, the same as ANSI mappings,
495495
// but the sequences use an ESC ? prefix instead of SS3.
496-
if (_inputMode.test(Mode::Keypad))
496+
if (_inputMode.test(Mode::Keypad) && Feature_KepadModeEnabled::IsEnabled())
497497
{
498498
defineKeyWithUnusedModifiers(VK_MULTIPLY, L"\033?j"s);
499499
defineKeyWithUnusedModifiers(VK_ADD, L"\033?k"s);

0 commit comments

Comments
 (0)