[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49397] Spacebar key is not recognize as "spac
From: |
Avinoam Kalma |
Subject: |
[Octave-bug-tracker] [bug #49397] Spacebar key is not recognize as "space" |
Date: |
Sat, 17 Dec 2016 20:33:26 -0000 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?49397>
Summary: Spacebar key is not recognize as "space"
Project: GNU Octave
Submitted by: avinoam
Submitted on: Thu 20 Oct 2016 08:32:36 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Avinoam
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Microsoft Windows
_______________________________________________________
Details:
consider the following simple script:
function test_space()
global g;
app = init_app();
g = build_GUI(app);
set(g.fig, 'KeyPressFcn', @on_type);
end
function on_type(~,e)
global g;
disp (e.Key);
switch e.Key
case {'escape'}
close(g.fig);
return;
end
end
function app = init_app()
app = struct();
app.sz = [100 200];
end
function g = build_GUI(app)
sz = app.sz;
g = struct();
g.fig = figure('Name','test spacebar', ...
'NumberTitle','off', 'Menubar','none', 'Resize','off', ...
'Position',[200 200 sz(2)*2 sz(1)+40]);
end
If you press any key, Octave will print this key. If you press
escape, Octave will print "escape" and quit this script.
The problem: if you press the spacebar, Octave will print
"any" and not "space" as Matlab does.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 20 Oct 2016 08:32:36 PM GMT Name: test_space.m Size: 517B By:
avinoam
<http://savannah.gnu.org/bugs/download.php?file_id=38778>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49397>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49397] Spacebar key is not recognize as "space",
Avinoam Kalma <=