Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

keys on keyboard bar with meta / alt modifier not working #47

Open
helguson opened this issue Aug 1, 2018 · 1 comment
Open

keys on keyboard bar with meta / alt modifier not working #47

helguson opened this issue Aug 1, 2018 · 1 comment

Comments

@helguson
Copy link

helguson commented Aug 1, 2018

  • Device: FP2
  • UT channel: 16.04 rc
  • UT build: 2018-W29
  • terminal-app version: 0.9.0

Background

Using the last version of ubuntu touch by canonical I created and used some custom keyboard bar layouts. Recently I transferred those layouts to ubuntu touch by ubports and noticed that my keys with meta or alt modifier are not received anymore.

Steps to reproduce

For demonstration we will use the preinstalled showkey that will print the codes for pressed keys as well as a test layout.

Setup

  1. create user layout directory if it does not already exist
    mkdir -p ~/.config/ubuntu-terminal-app/Layouts
  2. copy test layout to layout directory
    cp 'test layout.txt' '~/.config/ubuntu-terminal-app/Layouts/test layout.json'

Procedure

  1. (re)start terminal-app and enter passcode
  2. choose test layout for the keyboard bar
  3. run sudo showkey -a
  4. press x on the on-screen keyboard
  5. press x on the keyboard bar
  6. press C-x on the keyboard bar for CTRL+X
  7. press M-x on the keyboard bar for ALT+X
  8. press C-d on the keyboard bar for CTRL+D

Expected behavior

on 4. showkey creates output for the key that was pressed
on 5. showkey creates output for the key that was pressed
on 6. showkey creates output for the key that was pressed
on 7. showkey creates output for the key that was pressed
on 8. showkey creates output for the key that was pressed and stops

So the output should look similar to this what I created using a bluetooth keyboard:

Actual behavior

on 4. showkey creates output for the key that was pressed
on 5. nothing happens
on 6. showkey creates output for the key that was pressed
on 7. nothing happens
on 8. showkey creates output for the key that was pressed and stops

So actually I get the following output:

Additional information and logs

log_terminal-app.txt

@myii
Copy link

myii commented Jan 9, 2019

@helguson I can confirm this behaviour. I've found one exception, though. Alt + any of the arrow keys. I.e.

        {                                                                       
            "main_action" : {                                                   
                "type": "key",                                                  
                "text": "M-\u2191",                                             
                "key" : "Up",                                                   
                "mod" : "Alt"                                                   
            }                                                                   
        },                                                                      
        {                                                                       
            "main_action" : {                                                   
                "type": "key",                                                  
                "text": "M-\u2193",                                             
                "key" : "Down",                                                 
                "mod" : "Alt"                                                   
            }                                                                   
        },                                                                      
        {                                                                       
            "main_action" : {                                                   
                "type": "key",                                                  
                "text": "M-\u2190",                                             
                "key" : "Left",                                                 
                "mod" : "Alt"                                                   
            }                                                                   
        },                                                                      
        {                                                                       
            "main_action" : {                                                   
                "type": "key",                                                  
                "text": "M-\u2192",                                             
                "key" : "Right",                                                
                "mod" : "Alt"                                                   
            }                                                                   
        },

Also tried with PageUp and PageDown but faced the same problem.

  • Device: N5
  • UT channel: 16.04 devel
  • UT build: 2019-01-08
  • terminal-app version: 0.9.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants