<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/input.c, branch releases/1.5</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.5</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.5'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-12-01T18:47:16Z</updated>
<entry>
<title>input: relax requirements for overriding keypad application mode</title>
<updated>2020-12-01T18:47:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-01T17:27:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f6aa1495d7b0fea56f8c7d96ba119b1ce6ab15ee'/>
<id>urn:sha1:f6aa1495d7b0fea56f8c7d96ba119b1ce6ab15ee</id>
<content type='text'>
Don’t require NumLock to be locked. Foot has no idea _which_ modifier
the user has mapped NumLock to, meaning we really cannot require it to
be locked.
</content>
</entry>
<entry>
<title>keymap: use same lookup table for Tab and ISO_Left_Tab</title>
<updated>2020-12-01T18:41:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-19T18:15:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3a3616af962bcd53c245e648cc73185584d79a5d'/>
<id>urn:sha1:3a3616af962bcd53c245e648cc73185584d79a5d</id>
<content type='text'>
With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not
XKB_Key_Tab. Previously, we had two different lookup tables for the
two.

The tab table was correctly populated, while the ISO-left tab
wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself)
was wrong, and resulted in the same escape sequence as Shift+Tab.

Fix by using the same table for both tab and ISO-left tab.

Closes #210
</content>
</entry>
<entry>
<title>input: enforce ‘numerical’ keypad mode when Num Lock override is enabled</title>
<updated>2020-12-01T18:39:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-11T17:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dea8e89fda905d75e2f5ae425bdc363b68c6c66c'/>
<id>urn:sha1:dea8e89fda905d75e2f5ae425bdc363b68c6c66c</id>
<content type='text'>
When num lock override has been enabled via “CSI?1035h” (the default),
keypad is always considered to be in ‘numerical’ mode.

This affects how keypad keys are translated to escape sequences when
Num Lock is active.

The keypad has four modes:

* Num Lock off, numerical mode
* Num Lock off, application mode
* Num Lock on, numerical mode
* Num Lock on, application mode

The keymap is identical for numerical and application mode when Num
Lock is off, meaning the keypad effectively has three different modes.

In XTerm, numerical and application mode _can_ be the same, **if** the
‘numLock’ resource is set to true (the default). It is only when
‘numLock’ is false that the application mode is actually used.

This patch changes foot to do the same. We don’t expose an option, but
do implement “CSI ? 1035”.

Closes #194
</content>
</entry>
<entry>
<title>input: track num lock state</title>
<updated>2020-12-01T18:39:05Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-11T17:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4f0d05724364dc5fa1def6b077bd32c65d1f77ba'/>
<id>urn:sha1:4f0d05724364dc5fa1def6b077bd32c65d1f77ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: use XKB_MOD_NAME_* macros instead of hard-coded strings</title>
<updated>2020-12-01T18:37:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-11T17:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=61f4845a59e1757f5463d9c37874763dc635f848'/>
<id>urn:sha1:61f4845a59e1757f5463d9c37874763dc635f848</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t use seat-&gt;kbd_focus as terminal when processing a key press</title>
<updated>2020-11-06T19:09:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-03T18:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c512dc4490b552c535636563db28b74b258ec0fc'/>
<id>urn:sha1:c512dc4490b552c535636563db28b74b258ec0fc</id>
<content type='text'>
When converting mouse scroll events to keyboard input (in alternate
scroll mode), we need to use seat-&gt;mouse_focus, not seat-&gt;kbd_focus.

To enable this, break out key press/release handling code to a
separate function that takes an explicit term argument. Call this
function from keyboard_key(), input_repeat() and in alternate scroll
mode.

Closes #179
</content>
</entry>
<entry>
<title>input: handle XKB errors</title>
<updated>2020-11-06T19:08:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T19:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=30f23a3b743525bf7daf4334a549030956146b15'/>
<id>urn:sha1:30f23a3b743525bf7daf4334a549030956146b15</id>
<content type='text'>
* Don’t de-reference the xkb context/keymap/state if we failed to
  instantiate them.
* Don’t try to send a translated utf8 key sequence if the translation
  failed.
* Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8()
  returning more than 64 bytes.

This _may_ fix #171.
</content>
</entry>
<entry>
<title>input: don’t allow diagonal resize when tiled</title>
<updated>2020-11-06T19:08:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-20T19:00:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=90544ef391f0c546e831255036a939ac5314f6a9'/>
<id>urn:sha1:90544ef391f0c546e831255036a939ac5314f6a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t crash if xkbcommon cannot find a compose file</title>
<updated>2020-11-06T19:07:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-19T16:30:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9e7783596aad33fcb5564186feb93d94e465627b'/>
<id>urn:sha1:9e7783596aad33fcb5564186feb93d94e465627b</id>
<content type='text'>
Handle xkb_compose_table_new_from_locale() returning NULL. When this
happens, log a warning that “dead keys” will be disabled, and make
sure to never de-reference the compose table pointer.

Closes #170
</content>
</entry>
<entry>
<title>input: regression: don’t pass on mouse click to application if we consumed it</title>
<updated>2020-10-13T06:02:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-10-13T06:02:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fdb7e403555df5fdcb7daf23f665bdec13b02500'/>
<id>urn:sha1:fdb7e403555df5fdcb7daf23f665bdec13b02500</id>
<content type='text'>
When we ‘consume’ a mouse button event (i.e. when we have a shortcut
mapped to it), the event should *not* be passed on to the client
application.

In 5f64c5c33590a41afd3f621870c6abd89b859073, button handling was
refactored and unfortunately introduced a regression where we once
again started passing consumed button presses to the client
application.

Fixes #168
</content>
</entry>
<entry>
<title>input: trackpad scroll: correctly convert pixel movements to line movements</title>
<updated>2020-10-11T17:23:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-27T09:11:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8e04b086158730b615803c45368f1fe7a6bce95e'/>
<id>urn:sha1:8e04b086158730b615803c45368f1fe7a6bce95e</id>
<content type='text'>
Trackpad scroll movements are in pixels. Foot previously “translated”
these directly to line movements (i.e. a one pixel scroll event was
translated into a one line scroll).

Now we use the line height of the terminal and correctly convert
pixels to lines.

This makes the trackpad scroll speed in foot consistent with the
scroll speed in e.g. Alacritty and Kitty.
</content>
</entry>
<entry>
<title>input: mouse: match binding if binding’s click count is *less*</title>
<updated>2020-10-11T17:22:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-27T12:31:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=59ca98f989129efc1f4a77929921571a8e06949f'/>
<id>urn:sha1:59ca98f989129efc1f4a77929921571a8e06949f</id>
<content type='text'>
Allow a mouse binding to match even if its click count is less than
the actual click count.

If there are multiple bindings that match, use the one with the
highest click count (that less than, or equal to the actual click
count).

Closes #146
</content>
</entry>
<entry>
<title>input: mouse_scroll(): refactor</title>
<updated>2020-09-15T16:57:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04c1bab7b0d24028403667d9081ca0081c947ebd'/>
<id>urn:sha1:04c1bab7b0d24028403667d9081ca0081c947ebd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t use stale keycodes for arrow-up/down</title>
<updated>2020-09-15T16:44:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:44:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb41db85965698dcf34217f8d26d9163a72a2e70'/>
<id>urn:sha1:cb41db85965698dcf34217f8d26d9163a72a2e70</id>
<content type='text'>
The keycodes will change if the seat’s keymap changes. Make sure we
only do alternate scrolling if the seat has a keyboard, and use
the *current* layout’s keycodes for arrow up/down (instead of
the *first* layout’s).
</content>
</entry>
<entry>
<title>input: don’t do alternate mode scrolling if application is grabbing mouse</title>
<updated>2020-09-15T16:40:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=028bbd03a3284d60db802631a71ebb1626befa68'/>
<id>urn:sha1:028bbd03a3284d60db802631a71ebb1626befa68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: don’t do grid scrollback if mouse events are being captured</title>
<updated>2020-09-15T16:33:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-15T16:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ad90e63236408d4b661050a96d2486854c69cb1'/>
<id>urn:sha1:6ad90e63236408d4b661050a96d2486854c69cb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>key-binding: deprecate scrollback-up/down, add scrollback-up/down-line</title>
<updated>2020-09-10T16:17:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-10T16:17:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4d13429235e00290230dd7d070156c610a9502cc'/>
<id>urn:sha1:4d13429235e00290230dd7d070156c610a9502cc</id>
<content type='text'>
This deprecates/renames scrollback-up/down to scrollback-up/down-page.

It also renames scrollback-up/down-half to
scrollback-up/down-half-page, and adds the new bindings
scrollback-up/down-line.
</content>
</entry>
<entry>
<title>config: add scrollback-{up,down}-half key bindings</title>
<updated>2020-09-09T17:40:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-09T17:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2e3bd5e23c68280ec95498a4afe176b5f94964e0'/>
<id>urn:sha1:2e3bd5e23c68280ec95498a4afe176b5f94964e0</id>
<content type='text'>
These new bindings scroll up/down half a page in the
scrollback (instead of the full page scrolled by
‘scrollback-{up,down}’).

Closes #128.
</content>
</entry>
<entry>
<title>input: fix assertion when pressing first one mouse button, then another</title>
<updated>2020-09-07T17:35:25Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-07T17:35:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5f64c5c33590a41afd3f621870c6abd89b859073'/>
<id>urn:sha1:5f64c5c33590a41afd3f621870c6abd89b859073</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cast printf formatter %p arguments to void*</title>
<updated>2020-08-23T08:07:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T05:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e32c0d9bf698782353bbe9e4348617523af473bd'/>
<id>urn:sha1:e32c0d9bf698782353bbe9e4348617523af473bd</id>
<content type='text'>
</content>
</entry>
</feed>
